]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging:wlan-ng: clean some more functions
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 9 Sep 2012 13:11:02 +0000 (18:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:42:52 +0000 (15:42 -0700)
the function p80211netdev_rx doesnt' need a return at the end
and also remove some new lines

the function p80211knetdev_set_mac_address doesn't need the result
variable assigned as it gets a return from p80211req_dorequest function

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 89b3e3b81496920999ec5e41d11a798c25606d64..8afb1935e3fb081fb6e0de30cf2a4281f072292a 100644 (file)
@@ -240,10 +240,7 @@ void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb)
 {
        /* Enqueue for post-irq processing */
        skb_queue_tail(&wlandev->nsd_rxq, skb);
-
        tasklet_schedule(&wlandev->rx_bh);
-
-       return;
 }
 
 /*----------------------------------------------------------------
@@ -644,7 +641,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr)
        p80211item_unk392_t *mibattr;
        p80211item_pstr6_t *macaddr;
        p80211item_uint32_t *resultcode;
-       int result = 0;
+       int result;
 
        /* If we're running, we don't allow MAC address changes */
        if (netif_running(dev))