Thread (2 messages) flat view 2 messages, 2 authors, 2014-05-10

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

From: Joe Perches <joe@perches.com>
Date: 2014-05-10 04:47:22
Also in: lkml

On Fri, 2014-05-09 at 21:41 -0700, Jeff Kirsher wrote:
From: David Ertman <redacted>
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help