From: Devendra Naga Date: Sun, 9 Sep 2012 13:11:01 +0000 (+0530) Subject: staging:wlan-ng: clean register_wlandev function X-Git-Tag: firefly_0821_release~3680^2~1977^2~430 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=50d6b9baa0f5fd3476fb1dacfd92da9e0348c3d6;p=firefly-linux-kernel-4.4.55.git staging:wlan-ng: clean register_wlandev function we dont need i to just return the status of register_netdev Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index 0f51b4ab3631..89b3e3b81496 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c @@ -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); } /*----------------------------------------------------------------