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 <[email protected]>
---
 drivers/staging/wlan-ng/p80211netdev.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/staging/wlan-ng/p80211netdev.c 
b/drivers/staging/wlan-ng/p80211netdev.c
index 89b3e3b..8afb193 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -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))
-- 
1.7.9.5

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to