]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3e96abe443508170cddf00b027607dafa1f3d18
treebf054fabb12089533c8718d241498c7916595ed2
parentca16a3857c475b77718b07153d4b29b824a4fae6
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