]> 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)
commite34e4d6bc456918e27daa3e2545248543081a449
tree5f99fbef7a252ea5cc035fb0bbfc3fd1a92d4ffc
parent24b991310c42b8389054d7d202996d6d66bf20bd
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