staging:wlan-ng: clean register_wlandev function
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 9 Sep 2012 13:11:01 +0000 (18:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:42:52 +0000 (15:42 -0700)
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>
drivers/staging/wlan-ng/p80211netdev.c

index 0f51b4ab3631a73cd5d68390e3679f1d7c0bf2ba..89b3e3b81496920999ec5e41d11a798c25606d64 100644 (file)
@@ -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);
 }
 
 /*----------------------------------------------------------------