Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3964256pxp; Tue, 15 Mar 2022 09:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDMk4HrL7zj36c9GSJXvqJXeP2yvIAsFYIsr+TBxUaiYCbS2CBpQI4oLD3RPdJddkZZYV5 X-Received: by 2002:a17:906:4cce:b0:6d6:e571:fcf6 with SMTP id q14-20020a1709064cce00b006d6e571fcf6mr23747475ejt.293.1647362313534; Tue, 15 Mar 2022 09:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647362313; cv=none; d=google.com; s=arc-20160816; b=Xm4wkpkX3iuXOav0L6aXP14mjJ/0GZ8x/F2BTFKf/9WFkcke9Y3m0aEQwbDbckGiFi emM4XyFl9J2wNmzqvwJGM0yVkF37XBNQ/+sdmz7d2fW9ZgKpMronAOC3Rbu8t36soweD gZQQFe/aB12xx7D+tDpCh/MikfxDYjyeKIM0E5DN01CfFSv4EAOQSnKGbVWccYc9fE0Q 9cjT+iuXZHxpocLYcfT7ofTs2n8igVfzZq5XzFH9NGCuoSzCC+nNqMmmehaMZtokxNAv XK6b0mhYtnJcFlVQCzoeG3z4Jc/1xr5u04vh/VWoUeN4QMfFK3Gtc8mMwX/AUYhQUgsJ QArg== 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=WOvSd9DoPcBKAHRsY9jZJyX5wUEYIr+BBopaNFL+Kks=; b=zsjVqEYKQpT6UHE7+a5S4g4W+F7B8SuS6ae2az6KgBIeyq7OwET3uXSz7v8SFbyW8S uInNOQ/HfVav88DzouZK8Br+3GtCgEKlsynQ1a5SREFLdgtHm2q/1cc4355uA9/7oQMr nawmSNxZNXIXGo1j+jXyZSUFfF+NDve+aLoFhVz2hX0rUOt4JYi/ieoWMBIADtodTJkt XM3wYCk5i4RH0KQZ9h2SE9KW4dZRzOsgBBBplGu409MDzITKCyw+0zf0A0P7EszjrU+9 u7bvmnQYP8njPtAP7QIB2/BLs9fBHW8SVN4i04RBX6r252mpq3928XRteZTdKsyTkRZS W6cA== 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 hp24-20020a1709073e1800b006da885332f6si11407720ejc.968.2022.03.15.09.38.07; Tue, 15 Mar 2022 09:38:33 -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 S1346213AbiCOIy7 (ORCPT + 99 others); Tue, 15 Mar 2022 04:54:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234749AbiCOIy6 (ORCPT ); Tue, 15 Mar 2022 04:54:58 -0400 Received: from mail.meizu.com (edge05.meizu.com [157.122.146.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86F4A60D8 for ; Tue, 15 Mar 2022 01:53:45 -0700 (PDT) Received: from IT-EXMB-1-125.meizu.com (172.16.1.125) by mz-mail12.meizu.com (172.16.1.108) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 15 Mar 2022 16:53:43 +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; Tue, 15 Mar 2022 16:53:43 +0800 From: Haowen Bai To: , , CC: , , Haowen Bai Subject: [PATCH v2] s390/tape: Use bitwise instead of arithmetic operator for flags Date: Tue, 15 Mar 2022 16:53:41 +0800 Message-ID: <1647334421-29989-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-126.meizu.com (172.16.1.126) To IT-EXMB-1-125.meizu.com (172.16.1.125) X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 This silences the following coccinelle warning: drivers/s390/char/tape_34xx.c:360:38-39: WARNING: sum of probable bitmasks, consider | Signed-off-by: Haowen Bai --- drivers/s390/char/tape_34xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/char/tape_34xx.c b/drivers/s390/char/tape_34xx.c index 7ada994..487ad2d 100644 --- a/drivers/s390/char/tape_34xx.c +++ b/drivers/s390/char/tape_34xx.c @@ -354,10 +354,10 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request, if (( sense[0] == SENSE_DATA_CHECK || sense[0] == SENSE_EQUIPMENT_CHECK || - sense[0] == SENSE_EQUIPMENT_CHECK + SENSE_DEFERRED_UNIT_CHECK + sense[0] == (SENSE_EQUIPMENT_CHECK | SENSE_DEFERRED_UNIT_CHECK) ) && ( sense[1] == SENSE_DRIVE_ONLINE || - sense[1] == SENSE_BEGINNING_OF_TAPE + SENSE_WRITE_MODE + sense[1] == (SENSE_BEGINNING_OF_TAPE | SENSE_WRITE_MODE) )) { switch (request->op) { /* -- 2.7.4