forked from Minki/linux
staging:wlan-ng: clean register_wlandev function
we dont need i to just return the status of register_netdev Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
102db1fc4a
commit
50d6b9baa0
@ -852,13 +852,7 @@ int wlan_unsetup(wlandevice_t *wlandev)
|
||||
----------------------------------------------------------------*/
|
||||
int register_wlandev(wlandevice_t *wlandev)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
i = register_netdev(wlandev->netdev);
|
||||
if (i)
|
||||
return i;
|
||||
|
||||
return 0;
|
||||
return register_netdev(wlandev->netdev);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user