OSDN Git Service

staging: ks7010: reduce level of indentation
authorTobin C. Harding <me@tobin.cc>
Mon, 13 Mar 2017 22:54:09 +0000 (09:54 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Mar 2017 00:08:15 +0000 (08:08 +0800)
commitf0a4c596f2f8106d1060bf0cc6ed1e3c2ed3b16d
tree7008f0a7cbcdba6e7863cde9a3ce55837349a352
parentf0b7d3a67bce75bc1e5910e30c3890ae01e3be04
staging: ks7010: reduce level of indentation

Checkpatch emits WARNING: Too many leading tabs - consider code
refactoring. One level of indentation may be removed by inverting an
if statement conditional (and returning if new conditional evaluates
to true). Code contains switch statement that also contains multiple
layers of indentation. Indentation may be reduced by breaking out of
the case statement in multiple places instead of guarding code with
if/else statements.

Invert conditional. Return original error code if new conditional
evaluates to true. Break out of case blocks instead of using
if/else. Do not modify program logic.

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