mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 00:42:16 +00:00
staging:wlan-ng: clean some more functions
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>
This commit is contained in:
parent
50d6b9baa0
commit
909ff71041
@ -240,10 +240,7 @@ void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb)
|
|||||||
{
|
{
|
||||||
/* Enqueue for post-irq processing */
|
/* Enqueue for post-irq processing */
|
||||||
skb_queue_tail(&wlandev->nsd_rxq, skb);
|
skb_queue_tail(&wlandev->nsd_rxq, skb);
|
||||||
|
|
||||||
tasklet_schedule(&wlandev->rx_bh);
|
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_unk392_t *mibattr;
|
||||||
p80211item_pstr6_t *macaddr;
|
p80211item_pstr6_t *macaddr;
|
||||||
p80211item_uint32_t *resultcode;
|
p80211item_uint32_t *resultcode;
|
||||||
int result = 0;
|
int result;
|
||||||
|
|
||||||
/* If we're running, we don't allow MAC address changes */
|
/* If we're running, we don't allow MAC address changes */
|
||||||
if (netif_running(dev))
|
if (netif_running(dev))
|
||||||
|
Loading…
Reference in New Issue
Block a user