On Wed, Jan 02, 2008 at 03:59:26PM -0800, SJS wrote:

When I see

  if ( blah )
     doSomething();

  blah();

I either fix it, or I harass the author about it until they fix it.

Sadly, the Linux coding standard forbids the braces when there is only one
statement.  The do require braces on both if and else when one of them is
more than one line, though.

Dave

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to