From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979Ab0CCMSY (ORCPT ); Wed, 3 Mar 2010 07:18:24 -0500 Received: from palinux.external.hp.com ([192.25.206.14]:49961 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954Ab0CCMSV (ORCPT ); Wed, 3 Mar 2010 07:18:21 -0500 Date: Wed, 3 Mar 2010 05:18:19 -0700 From: Matthew Wilcox To: Dan Carpenter , Greg KH , tim@weberpafrica.com, gregkh@suse.de, devel@driverdev.osuosl.org, Tim Schofield , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: verifying whitespace patches don't change anything was Re: [PATCH] Staging:rtl8192e: fix comments Message-ID: <20100303121819.GH6567@parisc-linux.org> References: <1266338116-27482-1-git-send-email-tim@weberpafrica.com> <20100218160547.GJ21785@kroah.com> <20100303071023.GF5086@bicker> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100303071023.GF5086@bicker> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2010 at 10:10:23AM +0300, Dan Carpenter wrote: > On Thu, Feb 18, 2010 at 08:05:47AM -0800, Greg KH wrote: > > On Tue, Feb 16, 2010 at 04:35:16PM +0000, tim@weberpafrica.com wrote: > > > From: Tim Schofield > > > > > > --- > > > drivers/staging/rtl8192e/r8180_93cx6.c | 22 ++++++++++++++-------- > > > 1 files changed, 14 insertions(+), 8 deletions(-) > > > > > > diff --git a/drivers/staging/rtl8192e/r8180_93cx6.c b/drivers/staging/rtl8192e/r8180_93cx6.c > > > index 262ed5f..60fba80 100644 > > > --- a/drivers/staging/rtl8192e/r8180_93cx6.c > > > +++ b/drivers/staging/rtl8192e/r8180_93cx6.c > > > @@ -23,12 +23,14 @@ > > > static void eprom_cs(struct net_device *dev, short bit) > > > { > > > if (bit) > > > + /* enable EPROM */ > > > write_nic_byte(dev, EPROM_CMD, > > > (1< > > - read_nic_byte(dev, EPROM_CMD)); //enable EPROM > > > + read_nic_byte(dev, EPROM_CMD)); > > > else > > > + /* disable EPROM */ > > > write_nic_byte(dev, EPROM_CMD, read_nic_byte(dev, EPROM_CMD)\ > > > - &~(1< > > + &~(1< > > > This does not do what you think it does (hint, you need {} if you want > > to have more than one line in an if statement...) Sorry, Greg, you're wrong in this case. /* */ does not count as a line. Here's an example: $ cat foo.c #include int main(void) { if (0) /* foo */ printf("Hello, World\n"); return 0; } $ gcc -o foo foo.c -W -Wall -O2 -g $ ./foo [no output] I think a much more cogent criticism of this patch would be that the comment is entirely unnecessary for this function with a simple change: -static void eprom_cs(struct net_device *dev, short bit) +static void eprom_cs(struct net_device *dev, short enable) { - if (bit) + if (enable) write_nic_byte(dev, EPROM_CMD, (1<