Re: [PATCH] saa7146: fix sparse warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Harvey Harrison
Date: Sunday, March 2, 2008 - 11:06 am

On Sun, 2008-03-02 at 20:34 +0300, Dmitri Vorobiev wrote:

<snip>

Yes, that's how I would have written it, but I tried to keep with the
prevailing style in that file.  I suppose I could see an argument for
consistency if you had a long series of if() statements to keep a
similar style.

if (foo == value1)

if (bar == value2)

if (baz == NULL)

I'll leave the discussion of putting the constant first in the comparison
for someone else to comment on.

Harvey

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] saa7146: fix sparse warnings, Harvey Harrison, (Thu Feb 21, 10:52 am)
Re: [PATCH] saa7146: fix sparse warnings, Al Viro, (Thu Feb 21, 2:19 pm)
Re: [PATCH] saa7146: fix sparse warnings, Harvey Harrison, (Thu Feb 21, 2:22 pm)
Re: [PATCH] saa7146: fix sparse warnings, Dmitri Vorobiev, (Sun Mar 2, 10:34 am)
Re: [PATCH] saa7146: fix sparse warnings, Harvey Harrison, (Sun Mar 2, 11:06 am)
Re: [PATCH] saa7146: fix sparse warnings, Dmitri Vorobiev, (Sun Mar 2, 11:46 am)
Re: [PATCH] saa7146: fix sparse warnings, Andrew Morton, (Sun Mar 2, 12:57 pm)