Received: by 10.223.176.46 with SMTP id f43csp4350885wra; Tue, 23 Jan 2018 08:09:19 -0800 (PST) X-Google-Smtp-Source: AH8x227ryomq5/TVnBYWQYkc32fx0k2wBmW4GICOBwyMUdI28htP91M1J1HPKqgxwA7xtDkAeKcb X-Received: by 10.107.53.83 with SMTP id c80mr4465890ioa.90.1516723759209; Tue, 23 Jan 2018 08:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516723759; cv=none; d=google.com; s=arc-20160816; b=jkVyWXmSBl62qLdUF4uUeh3YSz1yv44Vxj3BhK7PU322G/e97cykKS0Tf4Csiqf/Y0 8AqK9Ky8w+fEi79JcPIPHvdFkRrtwb0qjH3LjpAWk9Cc9+fPfPWy0Fk3fm49EyjXeszw s7DbXU6pk4o7TrRlPKu6PFHa5nD18BC0u1rHEeWq0kG8hQdr6fvZrokGcsa5iTK28ecf SYpYBsVLRvkAnEJ7k7++/D5rDwt65xDJqmMMrtRlGp6eu3Rt3+1A0udM010NJfhXsnKs ToGxW4A+r3J5DcU6J/cefy1ErHQmM25/i1LMXs7/k+lh8dqTG6yrAS2I/tMZfugug8Hq 7LeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=7ZTGtx5R0wglCHZq7sBA/oWdcXWr0NNuLUIxaKbvnow=; b=XnhlmZtuE+5PJmr5a1T1p9VMkENwEenqtLoTYXjyixYFw15AZpXh2akbtuTSyyr+jG uQbqMrxwTq+wfKfJUcDsNgXZrLS/oEZO4QxTjkO+Do5BVvxMuNOoTb2o9gxNG4EKl4yS OLhxi6xKzabq84gPdzW/tr3Jvpfpp7j1a7hjHS8IdEYV2Pfuw17+OoGv7Uzt106s2yFL 6Eb7Q9XLjVt1rC1pW5WeedYhXcOvlqqet/I+kIllp3EnBvNf7LmjhUQSeWY3ZpIkFQXN hpr6bBzM5bmC/aNrmkVqN44F/U2aVzMbxcMpeAGbU6KDDFdApxIsYpxSvf/C8N5CXaGH nmKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si8759067iob.10.2018.01.23.08.09.05; Tue, 23 Jan 2018 08:09:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751895AbeAWQIc (ORCPT + 99 others); Tue, 23 Jan 2018 11:08:32 -0500 Received: from gateway34.websitewelcome.com ([192.185.150.107]:25122 "EHLO gateway34.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeAWQIb (ORCPT ); Tue, 23 Jan 2018 11:08:31 -0500 X-Greylist: delayed 1378 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Jan 2018 11:08:31 EST Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 2B3C1266853 for ; Tue, 23 Jan 2018 09:45:33 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id e0lReuE21mzEze0lRezSC8; Tue, 23 Jan 2018 09:45:33 -0600 Received: from [189.175.13.235] (port=58898 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1ee0lQ-001gVx-PK; Tue, 23 Jan 2018 09:45:32 -0600 Date: Tue, 23 Jan 2018 09:45:31 -0600 From: "Gustavo A. R. Silva" To: John Youn , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] usb: dwc2: gadget: Use true and false for boolean values Message-ID: <20180123154531.GA22359@embeddedgus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.175.13.235 X-Source-L: No X-Exim-ID: 1ee0lQ-001gVx-PK X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.175.13.235]:58898 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 16 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index e4c3ce0..1f684dd 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -116,10 +116,10 @@ static inline void dwc2_gadget_incr_frame_num(struct dwc2_hsotg_ep *hs_ep) { hs_ep->target_frame += hs_ep->interval; if (hs_ep->target_frame > DSTS_SOFFN_LIMIT) { - hs_ep->frame_overrun = 1; + hs_ep->frame_overrun = true; hs_ep->target_frame &= DSTS_SOFFN_LIMIT; } else { - hs_ep->frame_overrun = 0; + hs_ep->frame_overrun = false; } } -- 2.7.4