]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00e861b125e662f365606ee05e3bff75dc46cf0c
treeddc7e32a4f1c41ebc1c2b1cd10da6f91e37a3e86
parenteb2fee8e0c959e201c994b5680ca198d34f99c2d
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