Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1718879ybz; Sun, 26 Apr 2020 02:46:28 -0700 (PDT) X-Google-Smtp-Source: APiQypID+YmIsMSsePfTtyyDqJ2eK3eZ4pD4Vi943W2e0Kv1ZsOhuEGibIQeLZeebTrGWHY5F/m0 X-Received: by 2002:a50:f78c:: with SMTP id h12mr13649623edn.207.1587894388611; Sun, 26 Apr 2020 02:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587894388; cv=none; d=google.com; s=arc-20160816; b=V+4b9k3Q9SBdkxbhicrOxZmFE5fAk8OyMKjkB0vmnPcMvJL5KJqex4WpST2wNEZoNY 4a2EzU98CvWTs4zUc31fNTVI5IX/hN6RfZ0MAHDJu7ZDnvm8yourZEbJNTc32Oekg8OH 9ooHQ6yorsFDj1Mok50bFOCGStddijAiKXqwDgJJ9FshCmvUBao83ZRpldFPb68xxvKI a0qE68grFRqTrX+a5DwVCxiZCAFtApGSs2PJjinwnV4QwdWF/DZO90bCeYlGFAUTX+62 qDgd6SaJY46EIsQr+QjNQj7zfpGPLpchw6Vz2XiFjWTjSAh/3f5/3b8ixtyr3kmXtwKH PczA== 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:cc:to:from; bh=V3eEfpeGi8x2Qm/fqTKMpz3cH9e6RZRWV8ERpbgEdYw=; b=B8p1piwnccpL2eNQMHrUBOGrAyFkH8/l16L9pAJc0pDHiM/bEliwAfWwJgCTS0x0HA hREtrj/Tw65xnq+RY1O4RwS9pXWesbieh2KDB/3gQxPq9WklcFc8lXSqyiAiinz9U4cE hwTtFroaKf43lTQF0yq1wC6fk/rQSVOiKuss8OGIrSLipUuqiogYKEteiMF+te/NA0Kn vA9fYHhyCQ4VcbrzOjHa4Xjt1myhMHNcZ9rj2ZSuKa2IpyxPRYNBSiDMv2okoAMXnZp7 rjmBOAgxJKyWDSKXeUZVlwMmOOL9YAnDA6HmFcYK1b3aoWHku8tv3qaNK0OuZk57ZczS ovXQ== 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 h7si6303769eds.336.2020.04.26.02.46.06; Sun, 26 Apr 2020 02:46:28 -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 S1726523AbgDZJns (ORCPT + 99 others); Sun, 26 Apr 2020 05:43:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2911 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726117AbgDZJns (ORCPT ); Sun, 26 Apr 2020 05:43:48 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 14C08C1C595CDC8A7D25; Sun, 26 Apr 2020 17:43:46 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Sun, 26 Apr 2020 17:43:38 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] scsi: ufs: use true for bool variables in ufshcd_complete_dev_init() Date: Sun, 26 Apr 2020 17:43:05 +0800 Message-ID: <20200426094305.24083-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/ufs/ufshcd.c:4140:6-14: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 52990c39bc16..fd1541111cc3 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4137,7 +4137,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba) { int i; int err; - bool flag_res = 1; + bool flag_res = true; err = ufshcd_query_flag_retry(hba, UPIU_QUERY_OPCODE_SET_FLAG, QUERY_FLAG_IDN_FDEVICEINIT, NULL); -- 2.21.1