]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: invert conditional, reduce indent
authorTobin C. Harding <me@tobin.cc>
Mon, 27 Feb 2017 03:14:44 +0000 (14:14 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:05 +0000 (09:17 +0100)
commit4b7409a1b805f9984ac706d1dfa711bd0954b8ea
tree5f99fbef7a252ea5cc035fb0bbfc3fd1a92d4ffc
parent3399de70dd6d55cfb8e1f5e0ed82fd5ffaafe150
staging: ks7010: invert conditional, reduce indent

Function _ks_wlan_hw_power_save has 5 levels of indentation. Reducing
the amount of indentation may make code clearer to read. Also a number
of other checkpatch warnings may be removed if we first reduce the
level of indentation in this function.

Invert conditional and return from function if new conditional
evaluates to true. Repeat on subsequent conditional. Reduce
indentation without changing the program logic.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c