]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/staging/ks7010/ks7010_sdio.c
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)
commitd5f1db31fb03072a11d8e5bb1e81c9b3982195b7
tree5f99fbef7a252ea5cc035fb0bbfc3fd1a92d4ffc
parent6d642eaa957d86d1b42e7d958f8fe7aa978ac840
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