Re: [PATCH] checkpatch.pl: Fix checkpatch false positive due to ternary operator break

From: Joe Perches
Date: Sat May 10 2014 - 00:47:24 EST


On Fri, 2014-05-09 at 21:41 -0700, Jeff Kirsher wrote:
> From: David Ertman <davidx.m.ertman@xxxxxxxxx>

Hey David.

> Using the intuitive breaking of a ternary operator used in the
> initialization of a variable in its declaration:
>
> type var = FOO ?
> BAR :
> FEE;
[]
> type var = FOO
> ? BAR
> : FEE;
>
> Change checkpatch so that it is checking fot the correct breaking of ternary
> operators used in networking variable declaration/initialization.

There is no "correct" breaking for ternary operators.
Both should be acceptable.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/