staging: wilc1000: remove goto from mac_open
authorLeo Kim <leo.kim@atmel.com>
Thu, 5 Nov 2015 05:36:34 +0000 (14:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
commit339d244a124da49ba1100189cf881448a30b8774
tree269a540d29845bc9985227e006440cd101b47dc0
parent6bc72c5ac7996819961bf65d64693efd3135ea42
staging: wilc1000: remove goto from mac_open

This patch removes goto from mac_open function. If address is invalid, goto
handles deinit process and return result.
So, just call deinit process and return the error value directly instead of
goto statement.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c