summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-03-22 05:06:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-23 16:27:23 +0300
commit2c4951adfae24d901c699ebb918bb6e5c7865ab7 (patch)
treeee0ab4b8fe0b9d27537f25e4b9fdcb4349a72f9e /include/linux
parent6ad6e21bd4e4edd1a3f59dc74b5f238455c05e71 (diff)
downloadlinux-2c4951adfae24d901c699ebb918bb6e5c7865ab7.tar.xz
staging: ks7010: invert if statement conditionals
Checkpatch emits WARNING: Avoid multiple line dereference. Function uses if statement blocks to guard the body of the function. If we invert these conditionals and return, then the code becomes more readable and subsequent code is indented less. The checkpatch fix then follows trivially. Invert conditionals, return from function if new conditional evaluates to true. Reduce the level of indentation in subsequent code. Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions