Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756800AbbGQGFE (ORCPT ); Fri, 17 Jul 2015 02:05:04 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:36669 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756712AbbGQGFB (ORCPT ); Fri, 17 Jul 2015 02:05:01 -0400 Date: Fri, 17 Jul 2015 11:34:45 +0530 From: Sudip Mukherjee To: Luis de Bethencourt Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Frans Klaver , Antoine Schweitzer-Chaput , Cristina Opriceana , Aya Mahfouz , Rickard Strandqvist , Koray Gulcu , Greg Donald , Lorenzo Stoakes , Ebru Akagunduz , Karthik Nayak , devel@driverdev.osuosl.org Subject: Re: [PATCH v4] staging: rtl8192u: remove bool comparisons Message-ID: <20150717060445.GA8422@sudip-PC> References: <20150716134949.GA27865@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150716134949.GA27865@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: 1193 Lines: 35 On Thu, Jul 16, 2015 at 03:49:49PM +0200, Luis de Bethencourt wrote: > Remove explicit true/false comparisons to bool variables. > > Signed-off-by: Luis de Bethencourt > --- > > diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c > index b852396..41cf99d 100644 > --- a/drivers/staging/rtl8192u/r8192U_core.c > +++ b/drivers/staging/rtl8192u/r8192U_core.c > @@ -2043,16 +2043,10 @@ static bool GetNmodeSupportBySecCfg8192(struct net_device *dev) > > static bool GetHalfNmodeSupportByAPs819xUsb(struct net_device *dev) > { > - bool Reval; > struct r8192_priv *priv = ieee80211_priv(dev); > struct ieee80211_device *ieee = priv->ieee80211; > > - if (ieee->bHalfWirelessN24GMode == true) > - Reval = true; > - else > - Reval = false; > - > - return Reval; > + return ieee->bHalfWirelessN24GMode; I think this should have been in a separate patch. 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/