Messages in this thread | | | Subject | Re: [PATCH] checkpatch.pl: Fix checkpatch false positive due to ternary operator break | From | Joe Perches <> | Date | Fri, 09 May 2014 21:47:16 -0700 |
| |
On Fri, 2014-05-09 at 21:41 -0700, Jeff Kirsher wrote: > From: David Ertman <davidx.m.ertman@intel.com>
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.
| |