summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-05-17 21:45:08 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-05-19 11:44:46 +0200
commit98be165b4355f750a62ca5ad280e04a135fe9bbd (patch)
treeb4b14b27c75364a00643a143ee44d8ffeb538d38 /drivers/net/ieee802154
parente214a9040a602552d40d0c71cdb38fac8f619cd6 (diff)
downloadlinux-98be165b4355f750a62ca5ad280e04a135fe9bbd.tar.bz2
fakelb: remove fakelb_hw_deliver
This patch cleanups the fakelb_hw_deliver function by removing them. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/fakelb.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/net/ieee802154/fakelb.c b/drivers/net/ieee802154/fakelb.c
index d693a539f8f3..10e2d27dbed4 100644
--- a/drivers/net/ieee802154/fakelb.c
+++ b/drivers/net/ieee802154/fakelb.c
@@ -66,16 +66,6 @@ fakelb_hw_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
return 0;
}
-static void
-fakelb_hw_deliver(struct fakelb_phy *phy, struct sk_buff *skb)
-{
- struct sk_buff *newskb;
-
- newskb = pskb_copy(skb, GFP_ATOMIC);
- if (newskb)
- ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc);
-}
-
static int
fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
{
@@ -88,8 +78,12 @@ fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
continue;
if (current_phy->page == phy->page &&
- current_phy->channel == phy->channel)
- fakelb_hw_deliver(phy, skb);
+ current_phy->channel == phy->channel) {
+ struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC);
+
+ if (newskb)
+ ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc);
+ }
}
read_unlock_bh(&fakelb_ifup_phys_lock);