staging: wilc1000: return exact error of register_netdev() from wilc_netdev_init()
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 25 Sep 2018 06:23:44 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:53:57 +0000 (20:53 +0200)
commit454dc5905d0cb99de61d41ae205e5b62922869e9
treeddc7e32a4f1c41ebc1c2b1cd10da6f91e37a3e86
parentba853fe6f8a4657ec675d53a34d6bc6cbb7d1638
staging: wilc1000: return exact error of register_netdev() from wilc_netdev_init()

Refactor wilc_netdev_init() to return the error code received from
register_netdev() during the failure condition.

Earlier discussion link
[1]. https://www.spinics.net/lists/linux-wireless/msg177304.html

Suggested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c