Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4304558ybz; Mon, 20 Apr 2020 20:43:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIvcflqt6dp0IW+BkmeESHQ7B5KFsoc0W/iBSuFg23SpaWRYwJ3Col2nxZW25Abd22FLNcn X-Received: by 2002:a17:906:25cb:: with SMTP id n11mr6944926ejb.37.1587440604181; Mon, 20 Apr 2020 20:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587440604; cv=none; d=google.com; s=arc-20160816; b=p7B9D5w7mHNH2IF5acUp0CERjrviHErx2XS08KuMJoqXJi/YtXwX88MMCOVK6AzXOg 0chGz4lpTQHX/0OMN+54+R/f04RLIKZrXXPOv/Iw6BemVudmA87YAIQRX1edn4J5e7M9 AGOssExSIe/+/fbF9/VnSUGmxAYrSBsV6Proc2NrmieHAaw5kxniKjJ/Iw8MzAPybY/0 CVf4pJzMpeYmSVbjegiLzviqMqtgrjiys2BVeyldQDFnyUXc+BIvGnVagN+P3RGz01xj Rw/tgjYNyS0TOk8YqXOz3lJZO5NqgeR6GDJrQe601p3iZKv4pSa1cIJRBco1v/wj6FJB Fp6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=9bPlcuzsWsJYVByf7CRasFVhLdknHdbiwZuXWI88EdE=; b=nsmOg5lx3JW4IQZFbAT6ZiTxFfUvhYDP+ZpnXZxEbOHm2jZHS1jbJW6e8UehHlhUos GRnx5OfYS5PV+u34DUzBoE6Uc16/xSvgQbhUb3yiQa4h2FVtmm1eTsNTt3Fxiua3qRxh CXqYvEUIDTvW/R34I0/jCDtiYdu72Ovqja5reMTlsk6s9/eg022nhtHpbYdGsbC2qYFr LdJg7LEKriykTBTAlcAlvIaumRC7ELTZk2H6YFXNwAexNy/CrLwl1lIvmvJ7dm2mjY4Q zIDZcWIVLjbQsZkO90Sg8k0k7A4cxOxhobkLJ+HHWLuzOdwuPfUvBQIbmpFcU0t73OTM HaKA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co2si565943edb.524.2020.04.20.20.43.01; Mon, 20 Apr 2020 20:43:24 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728411AbgDUDld (ORCPT + 99 others); Mon, 20 Apr 2020 23:41:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2419 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728384AbgDUDlc (ORCPT ); Mon, 20 Apr 2020 23:41:32 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3F5AC2FF1769DAD9BECD; Tue, 21 Apr 2020 11:41:30 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 21 Apr 2020 11:41:20 +0800 From: Jason Yan To: , , , , , , Subject: [PATCH] scsi: isci: use true,false for bool variables Date: Tue, 21 Apr 2020 11:40:50 +0800 Message-ID: <20200421034050.28193-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/scsi/isci/isci.h:515:1-12: WARNING: Assignment of 0/1 to bool variable drivers/scsi/isci/isci.h:503:1-12: WARNING: Assignment of 0/1 to bool variable drivers/scsi/isci/isci.h:509:1-12: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/scsi/isci/isci.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/isci/isci.h b/drivers/scsi/isci/isci.h index 680e30947671..4e6b1decbca7 100644 --- a/drivers/scsi/isci/isci.h +++ b/drivers/scsi/isci/isci.h @@ -500,19 +500,19 @@ struct sci_timer { static inline void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) { - tmr->cancel = 0; + tmr->cancel = false; timer_setup(&tmr->timer, fn, 0); } static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) { - tmr->cancel = 0; + tmr->cancel = false; mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); } static inline void sci_del_timer(struct sci_timer *tmr) { - tmr->cancel = 1; + tmr->cancel = true; del_timer(&tmr->timer); } -- 2.21.1