Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1718679ybz; Sun, 26 Apr 2020 02:46:12 -0700 (PDT) X-Google-Smtp-Source: APiQypJLJcLHkLe3TrdBzHmMo9SeJZZANHq3CJYpeHe3ivtIOfOs1cr9/CMqQ1vKDPXsbo0nPwB8 X-Received: by 2002:a17:906:4714:: with SMTP id y20mr15196060ejq.5.1587894372127; Sun, 26 Apr 2020 02:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587894372; cv=none; d=google.com; s=arc-20160816; b=kfBOFVyC2cccsjI7xIXBEPhsqHK/8G8zZB81Kf8l4Cnp9SynhfjtW3UttHP2X2zxvG VWxBT7eJHxxhGp/nUstAkGx2f67BGkPBsHXGAS1C8Ebs8FjiRNAj9WFil9+hN2GZQmVq DhfiOQ007voLvc+DBbOCjQMigF+6dgKnf1UGW4C+nO36rnc4c+wQ1mUA35R+Qq80yfi3 iswAJ8g/5sazYXS2goTrDM73p1jXTwd94CDB5ukfGqQsCl8BBjOuQxMRVFZDQmo92RJr PSX8gOe6qmDJJZ6IYow9q6w3jToW0bceLnWxC0BdK130Z14+I3NYQqZjfcq/49AmnvBe 2shA== 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=mZe5j4XNvNQFKuY9YOBDdiFmsaCtCDuSA2SC2dgHE1w=; b=B91ug9rYT7YfRx+ASmnXmThSVrWNOmFff/XmuAZRrEmBQ0mydD0qWXwsyebxy2Njvs 2Zm11w/lc61cIdcYeJ5ZdkYozoXDdZoGELLuSFyNaaXBPSEGEGr8/CpHNzx+nL5o6yxL Toc//FPDr9nlOtBv2mOcz/v49y09L8zBKk3Qxe8WfOg4pJ28geL0dNPkHqZgK9nuDZH1 A8ZZtrMfnd+LN3aQDZ88+ydi4TCjPc9PECIvVi6yA44fxFdrfzZaa0R+dBtp9EJMi1j7 LBwmOtdeHvlHkjLcaYmpU3A6Ozp/FQxYMQDN17OajIW67cFdGVdhaE26Wx3nFF1FDEbi bFrg== 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 o20si6513600edr.279.2020.04.26.02.45.49; Sun, 26 Apr 2020 02:46:12 -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 S1726469AbgDZJmj (ORCPT + 99 others); Sun, 26 Apr 2020 05:42:39 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2908 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726143AbgDZJmj (ORCPT ); Sun, 26 Apr 2020 05:42:39 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7AE7CCED61829DEC30E5; Sun, 26 Apr 2020 17:42:37 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Sun, 26 Apr 2020 17:42:29 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH] usb: dwc3: use true,false for dwc->otg_restart_host Date: Sun, 26 Apr 2020 17:41:56 +0800 Message-ID: <20200426094156.23558-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/dwc3/drd.c:85:3-24: WARNING: Assignment of 0/1 to bool variable drivers/usb/dwc3/drd.c:59:2-23: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/usb/dwc3/drd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c index 7db1ffc92bbd..30aac818cd36 100644 --- a/drivers/usb/dwc3/drd.c +++ b/drivers/usb/dwc3/drd.c @@ -56,7 +56,7 @@ static irqreturn_t dwc3_otg_thread_irq(int irq, void *_dwc) spin_lock(&dwc->lock); if (dwc->otg_restart_host) { dwc3_otg_host_init(dwc); - dwc->otg_restart_host = 0; + dwc->otg_restart_host = false; } spin_unlock(&dwc->lock); @@ -82,7 +82,7 @@ static irqreturn_t dwc3_otg_irq(int irq, void *_dwc) if (dwc->current_otg_role == DWC3_OTG_ROLE_HOST && !(reg & DWC3_OEVT_DEVICEMODE)) - dwc->otg_restart_host = 1; + dwc->otg_restart_host = true; dwc3_writel(dwc->regs, DWC3_OEVT, reg); ret = IRQ_WAKE_THREAD; } -- 2.21.1