staging: ks7010: continue from loop on unmatched mac
authorTobin C. Harding <me@tobin.cc>
Thu, 27 Apr 2017 01:25:24 +0000 (11:25 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 09:47:26 +0000 (11:47 +0200)
commite04f2ec6c3266336784919d719b12ab67edaa74a
tree29b2b90a556fac35fa4fcfb6ac6d4dd42ce6f669
parent2b0d92b265324cfe42839a23cb46677bb0112c2c
staging: ks7010: continue from loop on unmatched mac

Inside loop, code block is guarded with an 'if' statement. Instead of
guarding the block we can invert the 'if' statement conditional and
continue the loop. Doing so allows subsequent code indentation to be
reduced and aids the readability of the code.

Invert 'if' statement conditional, continue loop if new conditional
evaluates to true. Reduce subsequent code indentation level. Do not
change program logic.

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