Thread (1 message) 1 message, 1 author, 2016-09-24

Re: [PATCH] realtek: Add switch variable to 'switch case not processed' messages

From: Jes Sorensen <hidden>
Date: 2016-09-24 20:35:28
Also in: linux-wireless, lkml

Joe Perches [off-list ref] writes:
On Sat, 2016-09-24 at 14:06 -0500, Larry Finger wrote:
quoted
On 09/24/2016 12:32 PM, Joe Perches wrote:
[]
quoted
o Reindent all the switch/case blocks to a more normal
  kernel style (git diff -w would show no changes here)
That sounds like busy work to me, but if you want to do it, go ahead.
It's really just to make the comparison case block reductions
easier to verify for later steps done
quoted
quoted
o cast, spacing and parenthesis reductions
  Lots of odd and somewhat unique styles in various
  drivers, looks like too many individual authors without
  a style guide / code enforcer using slightly different
  personalized code.  Glancing at the code, it looks to be
  similar logic, just written in different styles.
Same comment.
Same rationale
quoted
quoted
o Logic changes like
  from:
    if (foo) func(..., bar, ...); else func(..., baz, ...);
  to:
    func(..., foo ? bar : baz, ...);
  to make the case statement code blocks more consistent
  and emit somewhat smaller object code.
I find if .. else constructs much easier to read than the cond ? xxxx : yyyy 
form. I would reject any such patches.
<shrug> I think object code reduction generally a good thing
but then again, I'm not a maintainer here.
I missed this part, but I am with Larry here - 'foo ? bar : boo' are
just obfuscating the code and far less clear than if or switch
statements.

Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help