Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750863AbbFXFgB (ORCPT ); Wed, 24 Jun 2015 01:36:01 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:36300 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbbFXFfx (ORCPT ); Wed, 24 Jun 2015 01:35:53 -0400 Date: Wed, 24 Jun 2015 11:05:16 +0530 From: Sudip Mukherjee To: Luis de Bethencourt Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Rickard Strandqvist , Greg Kroah-Hartman , Greg Donald , Koray Gulcu , Cristina Opriceana , Karthik Nayak Subject: Re: [PATCH v2] staging: rtl8192u: bool tests don't need comparisons Message-ID: <20150624053516.GB3881@sudip-PC> References: <20150623131056.GA1970@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150623131056.GA1970@goodgumbo.baconseed.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1694 Lines: 35 On Tue, Jun 23, 2015 at 03:10:56PM +0200, Luis de Bethencourt wrote: > Remove explicit true/false comparations to bool variables. > > Signed-off-by: Luis de Bethencourt > --- > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c > index 12dd19e..9946615 100644 > --- a/drivers/staging/rtl8192u/r8192U_dm.c > +++ b/drivers/staging/rtl8192u/r8192U_dm.c > @@ -438,7 +438,7 @@ static void dm_bandwidth_autoswitch(struct net_device *dev) > > if (priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 || !priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable) > return; > - if (priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz == false) { /* If send packets in 40 Mhz in 20/40 */ > + if (!priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz) { /* If send packets in 40 Mhz in 20/40 */ > if (priv->undecorated_smoothed_pwdb <= priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz) > priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = true; > } else { /* in force send packets in 20 Mhz in 20/40 */ > @@ -563,7 +563,7 @@ static void dm_TXPowerTrackingCallback_TSSI(struct net_device *dev) > break; > } > } > - if (viviflag == true) { > + if (viviflag) { I think you need to refresh your tree. This change has already been done by: c40753b5c7ee ("staging: rtl8192u: Removed redundant bool comparisons in r8192U_dm.c") regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/