staging: ks7010: remove duplicate code
authorTobin C. Harding <me@tobin.cc>
Thu, 27 Apr 2017 01:25:16 +0000 (11:25 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 09:45:49 +0000 (11:45 +0200)
commit8215fc607f50c516ceeb47fac046c3e4ea7acc4e
treebf054fabb12089533c8718d241498c7916595ed2
parent08484ef41927a52fbd0d46c5cd19a65535d768ea
staging: ks7010: remove duplicate code

Current switch statement has duplicate code in branches. This code can
be put after the switch statement so as to remove the duplication.

Move code to after switch statement, remove duplicate code. Make error
branch return so as not to execute the moved code block. 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/ks_hostif.c