linux/drivers/staging/ks7010
Tobin C. Harding d317d054b1 staging: ks7010: move check and break to top of loop
Function uses an if statement within a for loop to guard a block of
code. If 'if' statement conditional evaluates to false, loop breaks. The
same logic can be expressed by inverting the conditional and breaking
when new conditional evaluates to true. This allows the subsequent code
to be indented one level less, aiding readability. Reduced indentation
also allows for the code to be laid out more clearly and fixes two
checkpatch warnings.

Invert if statement conditional, break from for loop if new
conditional evaluates to true. Reduce indentation in subsequent code,
fix whitespace issues. Do not change program logic.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-11 16:14:33 +02:00
..
Kconfig staging: ks7010: remove custom firmware loader 2016-06-07 22:42:53 -07:00
Makefile staging: ks7010: remove cfg file handling 2016-06-18 19:45:55 -07:00
TODO staging: ks7010: add task to TODO file 2017-04-11 16:05:51 +02:00
eap_packet.h staging: ks7010: eap_packet: Format comments to fit in line 2017-03-09 14:01:29 +01:00
ks7010_sdio.c staging: ks7010: factor out send stop request 2017-04-11 16:03:36 +02:00
ks7010_sdio.h staging: ks7010: fix checkpatch SPACING 2017-03-16 11:44:30 +09:00
ks_hostif.c staging: ks7010: move check and break to top of loop 2017-04-11 16:14:33 +02:00
ks_hostif.h staging: ks7010: rename identifier packet to skb 2017-04-11 16:14:33 +02:00
ks_wlan.h staging: ks7010: fix coding style issue of aligning comments properly 2017-03-06 09:17:07 +01:00
ks_wlan_ioctl.h staging: ks7010: add parentheses to complex macro 2017-03-14 06:20:57 +08:00
ks_wlan_net.c staging: ks7010: fix checkpatch UNNECESSARY_ELSE 2017-04-11 16:05:50 +02:00
michael_mic.c staging: ks7010: fix checkpatch SPACING 2017-03-21 08:52:33 +01:00
michael_mic.h staging: ks7010: fix spelling of Michael MIC 2017-03-14 08:04:51 +08:00