Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3140067pxb; Mon, 1 Mar 2021 02:38:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyx57FRhkJMrZEi/44acXLED9O8mYYxNWJHrdYq+4GPvmDgEA+1M9KyaLk5P4GC/+Zf0Uxv X-Received: by 2002:a50:ff0d:: with SMTP id a13mr15446709edu.321.1614595104122; Mon, 01 Mar 2021 02:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614595104; cv=none; d=google.com; s=arc-20160816; b=fZIoOezgtLZNdvFhxKnuG2uiTsZPw0OOV7VHG+CiHieupK21jUuZXCbB0SNwG3Zc1A /2OE+u5ez7HOLB/ca9Y98KI8WbS+0TPOQfPtj0JecX4eNvt5in+SPAq2PQlaZpqjkJyK o00+ltbze2MEtsGQHm7ap8mTKOVSKhGBi8Sx6ZABKYFZ6zqPBVD8VmQQ03ax2kTutiqZ 58hrUXKTrZzZYYVig7CmkSolkpPaO4612XMtfrlgxfl6paek5YpEpsvIRapXoRohinjT h5XJfehHNWkPAh8T5ZKC6QmQm+Ez+8iz8ORF6GbUKiWHIP9r39PV7wiSodEn8HHP26cv eXvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=omb5EfG1aUj2DL8rfBd3q+HGa/rMMe5v4ARq0HW3dks=; b=dXlhBIoXTsoE117dblwgI2cuoCf5c1JVHs25OzCPEHU9TbiZuc6sG1sienOfE0o47A BA+t4aGkwKIKwFxYWnN0cUrDlvb+AbPFLPElV3ax8kUSOXTGhCH83JK/WcOO7Hs2f2jT mrpNtVHRbevV0QVqvlvhSmZoe9Cyazc5K7UuY8QZ9tGsWJCIfi4vdBaH88fqKLUiaOgk Uczpd3ShKq9GkkodG394G0o9VOKb/ITlfcOU6W20V+a4Vu06rGOvHHdqPv+hi7dgn/0D yx7S7ICmasvnrSb/g1xmZTTRQSoQd6DL8EEMxOuDHZsHYh/9cAn+e/KqUiljlBgOiYzn 1d3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si2500502edq.173.2021.03.01.02.38.02; Mon, 01 Mar 2021 02:38:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234576AbhCAKdh (ORCPT + 99 others); Mon, 1 Mar 2021 05:33:37 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:39104 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234503AbhCAKdF (ORCPT ); Mon, 1 Mar 2021 05:33:05 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UPy7kYq_1614594732; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPy7kYq_1614594732) by smtp.aliyun-inc.com(127.0.0.1); Mon, 01 Mar 2021 18:32:21 +0800 From: Jiapeng Chong To: hca@linux.ibm.com Cc: gor@linux.ibm.com, borntraeger@de.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] s390: Simplify the calculation of variables Date: Mon, 1 Mar 2021 18:32:11 +0800 Message-Id: <1614594731-37663-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./arch/s390/include/asm/scsw.h:695:47-49: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/s390/include/asm/scsw.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/s390/include/asm/scsw.h b/arch/s390/include/asm/scsw.h index a7c3ccf..343b50f 100644 --- a/arch/s390/include/asm/scsw.h +++ b/arch/s390/include/asm/scsw.h @@ -692,8 +692,7 @@ static inline int scsw_tm_is_valid_pno(union scsw *scsw) return (scsw->tm.fctl != 0) && (scsw->tm.stctl & SCSW_STCTL_STATUS_PEND) && (!(scsw->tm.stctl & SCSW_STCTL_INTER_STATUS) || - ((scsw->tm.stctl & SCSW_STCTL_INTER_STATUS) && - (scsw->tm.actl & SCSW_ACTL_SUSPENDED))); + (scsw->tm.actl & SCSW_ACTL_SUSPENDED)); } /** -- 1.8.3.1