mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
net: remove unnecessary return's
One of my pet coding style peeves is the practice of adding extra return; at the end of function. Kill several instances of this in network code. I suppose some coccinelle wizardy could do this automatically. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
45f7435968
commit
2045ceaed4
11 changed files with 0 additions and 20 deletions
|
|
@ -62,8 +62,6 @@ static void hw_addr_notify(struct work_struct *work)
|
|||
pr_debug("failed changed mask %lx\n", nw->changed);
|
||||
|
||||
kfree(nw);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void set_hw_addr_filt(struct net_device *dev, unsigned long changed)
|
||||
|
|
@ -79,8 +77,6 @@ static void set_hw_addr_filt(struct net_device *dev, unsigned long changed)
|
|||
work->dev = dev;
|
||||
work->changed = changed;
|
||||
queue_work(priv->hw->dev_workqueue, &work->work);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void mac802154_dev_set_short_addr(struct net_device *dev, u16 val)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ mac802154_subif_rx(struct ieee802154_dev *hw, struct sk_buff *skb, u8 lqi)
|
|||
mac802154_wpans_rx(priv, skb);
|
||||
out:
|
||||
dev_kfree_skb(skb);
|
||||
return;
|
||||
}
|
||||
|
||||
static void mac802154_rx_worker(struct work_struct *work)
|
||||
|
|
|
|||
Loading…
Reference in a new issue