Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3214917ybz; Sun, 19 Apr 2020 21:01:35 -0700 (PDT) X-Google-Smtp-Source: APiQypLiWdX/As9c2jNynksLxOnqiKjv2TzdxY2gZhs/pshZ2Hbte68pMF+dhD5KMbL/CDdIMzK8 X-Received: by 2002:a17:906:6d90:: with SMTP id h16mr3957447ejt.117.1587355294869; Sun, 19 Apr 2020 21:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587355294; cv=none; d=google.com; s=arc-20160816; b=pfP1X1mx9dB/9274yIJhkOR9bx2o3sifpgSKFi8Qt1THfiqYkPqeSsTUNncI+0N9sb pWRR1EYjLpkPga+01BJMiHiyKk5EtQY7eixWlhYOBUCGF3lmC5HosuDFK1XRjg67uYYl QFbSchZmnzNel4NWG7C8QHfSNue3Y7DV4ifen5t2/f3hEzbaz9HO2vrNYOQipFczh89o 3Anz4fJsDwg9B5UQx+4kURSSE57Sv6a4w9wfD0rmatpJJ4BoEKyMRRJPsdjJ7qpPK63p EGudCNZTR9gskGp7APsZuLYYpoSoqTwpBZ5jUK6kHeY8KptbOdHT7egFBndIl8FAuhi8 5q0w== 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=9S9p93LCdAR0dpnZrrLotWNZEOc0aSub8GjWpVq/B88=; b=xUBejIxrFCyfu9jGlayApWjJlBl2Z3HJnVEW0zaBgG5DTC5UKPNp2x9TwY8L8OIQ3q bdlK05Oub5iu8dOZzBYIYeva0LAmutkidHhD7WNiwNAUBc4bow7d8MdG7czOLbqytbkC MjVri5akcRTM0r4YONLV4wsGYkIeSlUeVeYquW8kySrCZ9Zdlso6BD5Q4mEjAHFmiaZs kZCRMRhFcAqKmPcWTV/sYqJ/SKkm5c+fWetSsLRyivSmuKsQaNlyqgtxxrI4QAGDBgVl D/RfjFnGPjQf0IQJcMSuhSkeECSifogbXUl/OMBzpYX/R30mvitVMQoGN1Ey5VRONqpn X9pw== 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 j26si18099919ejt.88.2020.04.19.21.01.10; Sun, 19 Apr 2020 21:01:34 -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 S1725959AbgDTEAH (ORCPT + 99 others); Mon, 20 Apr 2020 00:00:07 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2804 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725681AbgDTEAH (ORCPT ); Mon, 20 Apr 2020 00:00:07 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0BE0D13B2D017AE430E6; Mon, 20 Apr 2020 12:00:05 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 11:59:55 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH] usb: pci-quirks: use true,false for bool variables Date: Mon, 20 Apr 2020 12:26:22 +0800 Message-ID: <20200420042622.18564-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/usb/host/pci-quirks.c:532:1-27: WARNING: Assignment of 0/1 to bool variable drivers/usb/host/pci-quirks.c:208:1-20: WARNING: Assignment of 0/1 to bool variable drivers/usb/host/pci-quirks.c:232:2-21: WARNING: Assignment of 0/1 to bool variable drivers/usb/host/pci-quirks.c:235:2-21: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/usb/host/pci-quirks.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index beb2efa71341..92150ecdb036 100644 --- a/drivers/usb/host/pci-quirks.c +++ b/drivers/usb/host/pci-quirks.c @@ -205,7 +205,7 @@ static void usb_amd_find_chipset_info(void) { unsigned long flags; struct amd_chipset_info info; - info.need_pll_quirk = 0; + info.need_pll_quirk = false; spin_lock_irqsave(&amd_lock, flags); @@ -229,10 +229,10 @@ static void usb_amd_find_chipset_info(void) case AMD_CHIPSET_SB800: case AMD_CHIPSET_HUDSON2: case AMD_CHIPSET_BOLTON: - info.need_pll_quirk = 1; + info.need_pll_quirk = true; break; default: - info.need_pll_quirk = 0; + info.need_pll_quirk = false; break; } @@ -529,7 +529,7 @@ void usb_amd_dev_put(void) amd_chipset.nb_type = 0; memset(&amd_chipset.sb_type, 0, sizeof(amd_chipset.sb_type)); amd_chipset.isoc_reqs = 0; - amd_chipset.need_pll_quirk = 0; + amd_chipset.need_pll_quirk = false; spin_unlock_irqrestore(&amd_lock, flags); -- 2.21.1