staging: ks7010: return directly on error
authorTobin C. Harding <me@tobin.cc>
Tue, 21 Mar 2017 02:37:08 +0000 (13:37 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:56:07 +0000 (08:56 +0100)
commit13b05e467d8f22c8ce871ffc7daa536df1beb0ce
treee7e248554171b0c6009208b5f484dd224b7a0239
parent0185f6c9637211757256aef3f519202dcc54b231
staging: ks7010: return directly on error

Function uses goto label with no clean up code. In this case we
should just return directly.

Remove goto statement, return directly on error.

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