Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5159969pxb; Mon, 28 Mar 2022 08:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl7xecT4LiIO9amV+W2tPslDoSLcXbAlIs6qabJHGZRPeXn0g3DKji3/49NAIvR8rEv/7F X-Received: by 2002:a05:6402:681:b0:419:dbec:9909 with SMTP id f1-20020a056402068100b00419dbec9909mr6201872edy.310.1648482379158; Mon, 28 Mar 2022 08:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648482379; cv=none; d=google.com; s=arc-20160816; b=z9vahMmdLYshhd3co2NZyBbP3kqVczRRgOZodalq3rna+vEvy/Z4vDtFXLUaRq14jZ wYBnv6rpmRWQlbno6y6VIeaTPwgGbF5Y5hx2NEcQgbx0zq9Ner7kgSpAeran791TpQUd o57G7uogDScKP16gf/I8hq3yjjd2AMDOa6QzavUmP6TIOhUv3r3jdIuQG2j2jPEwScUQ s3HWi+irEmhvRFOGItak3LG8QglGmAePuZ9ow3MaXNuVHrXrrk0WFdEvxEKbjKfCKA6d fJ4YfsjoCEzS00IdSUNfuGULQ/siLlJdrnpjMaeeB1KrhAYwqOjam/G2pvyGAqXiF1lz 6NuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=HqhPaoSAqbB/OhZGy9EbesiUJBopxgsZoJKvO0KSZAI=; b=zGVsxrphcT0Adlq5aGuzRNssbxWGSpNGiJzeJyN91UYYNSAlWNAoO/0FKdrz+exqDg ypQS097YNpmWdU3alajAQaljVc4cl2+pmgKKNEhTH16F8I1yp2sW2+caZxYMOCbi3KdJ gjSMXiNivMn9t/Wxl6B0RKC8+IDb/ynJyyveg7y9oCsw3dDbJRSsR51ESrVzd0UrkwCL 5ROqAprNctQ1Dzm7isi0JdaPmlGkBYJsKJUzZ94QARmIdU6EJLb1IV0/L5lzqN8LQgR+ YFTgOl6jRncIB1Hew+WbkLDVGvlRQTzdINq/iWPGGis5Z9++nGg3u3LwxHN3bYqIm11j 9OIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq26-20020a1709073f1a00b006dffb6427bdsi17896081ejc.269.2022.03.28.08.45.52; Mon, 28 Mar 2022 08:46:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237638AbiC1CiI (ORCPT + 99 others); Sun, 27 Mar 2022 22:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbiC1CiG (ORCPT ); Sun, 27 Mar 2022 22:38:06 -0400 Received: from mail.meizu.com (edge07.meizu.com [112.91.151.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9792122BCC; Sun, 27 Mar 2022 19:36:25 -0700 (PDT) Received: from IT-EXMB-1-125.meizu.com (172.16.1.125) by mz-mail11.meizu.com (172.16.1.15) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 28 Mar 2022 10:36:24 +0800 Received: from meizu.meizu.com (172.16.137.70) by IT-EXMB-1-125.meizu.com (172.16.1.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Mon, 28 Mar 2022 10:36:23 +0800 From: Haowen Bai To: , , , , CC: , , Haowen Bai Subject: [PATCH] s390: Simplify the calculation of variables Date: Mon, 28 Mar 2022 10:36:22 +0800 Message-ID: <1648434982-28862-1-git-send-email-baihaowen@meizu.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.16.137.70] X-ClientProxiedBy: IT-EXMB-1-125.meizu.com (172.16.1.125) To IT-EXMB-1-125.meizu.com (172.16.1.125) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 Signed-off-by: Haowen Bai --- 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..f2baac8 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)) } /** -- 2.7.4