staging: ks7010: remove switch statement
commit3188bc092655a0ef032eda9d5a251323b3008d40
authorTobin C. Harding <me@tobin.cc>
Mon, 27 Feb 2017 03:14:47 +0000 (27 14:14 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:05 +0000 (6 09:17 +0100)
treec8cca2e022fc4667f8c148684f4fcb6025eb59aa
parentcf57e659d5be6459e642dd451268bdb3437af7ff
staging: ks7010: remove switch statement

Switch statement uses one [trivial] case and a default case holding
bulk of code. We can swap the switch statement with an if/return
statement as replacement for the original switch. This can be done
without changing the program logic.

Remove switch statement. Use original switch parameter as conditional
and return if conditional evaluates to true. Reduce level of
indentation. Do not change 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