Commit 50d6b9ba authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging:wlan-ng: clean register_wlandev function

we dont need i to just return the status of register_netdev
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 102db1fc
...@@ -852,13 +852,7 @@ int wlan_unsetup(wlandevice_t *wlandev) ...@@ -852,13 +852,7 @@ int wlan_unsetup(wlandevice_t *wlandev)
----------------------------------------------------------------*/ ----------------------------------------------------------------*/
int register_wlandev(wlandevice_t *wlandev) int register_wlandev(wlandevice_t *wlandev)
{ {
int i = 0; return register_netdev(wlandev->netdev);
i = register_netdev(wlandev->netdev);
if (i)
return i;
return 0;
} }
/*---------------------------------------------------------------- /*----------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment