Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1718877ybz; Sun, 26 Apr 2020 02:46:28 -0700 (PDT) X-Google-Smtp-Source: APiQypIHiYN0HMCF+u4vM4QvjU9EovfClbv4jB8pXZVUWbnWL8KGheXQDWLVSU9MSG2qdc3xxAY+ X-Received: by 2002:aa7:cdce:: with SMTP id h14mr14132764edw.51.1587894388603; 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=KahFXt26UzLKRzQU/Cm7t+p95c6ts4y0midepLoxxPXPGtPdmJHKDBGF438jOdrbuZ SOJEiK5IfFpeLqIIrrPwLk0wyqEMjVIV5/yeVLSFee32Nk24KpfNPj97c/NhCByu8F3T H89JGAg5EvH6tdZS/8KLr1mxCPTFi36Jwr+wH3hQyxVFoMbEKAFdGpTcCSE0zFhy2P3s Bw6s1Z1fSxkdEk9GTew1L34LDlT8Y05Fcdt3AxzYfgQaaKMwNSCsShRP9A+0gzcu2g0g TNmRego8YrU/DG8gwkGQXMQUeftAzKiztU8TktIBKT9aporwvJDcoP0bFW3E7TKKxSzQ 1glw== 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=rUrrHV6/tV//k9mM1XD1Hn8G54UnTfyzJxP2/WpPbEw=; b=nHusTq2HLWRx0LBPdTNtqvkna16ITDvQjS6MQEnjj7iA7lf8oElde6DVgs5calgBwq En7h7u9XuGm/njKHx6sMSqidizv7pf/xlbLLyMyzNUgbNgOIRD19OckGdQbsrplRVeZ9 E6eXmYWu2cEIIZ+rOs2n9rDJHtcpcM0b/x3iJwyTewhEMnAbiqFB/+aRikE3JCR4swGq YGOx6JI7u8oydWTyIp41TZBejjtKyCFxmDL/oZBhro+JtPHx3aL+DxXmesp+ShZF0OHo 8TrbtEhozaRMxsQmdAgC7DYigDtGQA+Sj5tdtuR7/XdmkcRwYnHHnzB2pGwSJmoSNQa/ 3fkw== 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 f3si5915674edn.165.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 S1726493AbgDZJnC (ORCPT + 99 others); Sun, 26 Apr 2020 05:43:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2909 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726143AbgDZJnC (ORCPT ); Sun, 26 Apr 2020 05:43:02 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5DBDB860BFCC0A26912E; Sun, 26 Apr 2020 17:43:00 +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:42:52 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH] usb: gadget: udc: remove comparison to bool in mv_u3d_core.c Date: Sun, 26 Apr 2020 17:42:19 +0800 Message-ID: <20200426094219.23748-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/gadget/udc/mv_u3d_core.c:1551:5-13: WARNING: Comparison to bool Signed-off-by: Jason Yan --- drivers/usb/gadget/udc/mv_u3d_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index 35e02a8d0091..5bb0568b934e 100644 --- a/drivers/usb/gadget/udc/mv_u3d_core.c +++ b/drivers/usb/gadget/udc/mv_u3d_core.c @@ -1548,7 +1548,7 @@ static void mv_u3d_handle_setup_packet(struct mv_u3d *u3d, u8 ep_num, delegate = true; /* delegate USB standard requests to the gadget driver */ - if (delegate == true) { + if (delegate) { /* USB requests handled by gadget */ if (setup->wLength) { /* DATA phase from gadget, STATUS phase from u3d */ -- 2.21.1