summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-05-17 15:45:08 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-05-19 05:44:46 -0400
commit98be165b4355f750a62ca5ad280e04a135fe9bbd (patch)
treeb4b14b27c75364a00643a143ee44d8ffeb538d38 /drivers/net
parente214a9040a602552d40d0c71cdb38fac8f619cd6 (diff)
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')
-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)
66 return 0; 66 return 0;
67} 67}
68 68
69static void
70fakelb_hw_deliver(struct fakelb_phy *phy, struct sk_buff *skb)
71{
72 struct sk_buff *newskb;
73
74 newskb = pskb_copy(skb, GFP_ATOMIC);
75 if (newskb)
76 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc);
77}
78
79static int 69static int
80fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb) 70fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
81{ 71{
@@ -88,8 +78,12 @@ fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb)
88 continue; 78 continue;
89 79
90 if (current_phy->page == phy->page && 80 if (current_phy->page == phy->page &&
91 current_phy->channel == phy->channel) 81 current_phy->channel == phy->channel) {
92 fakelb_hw_deliver(phy, skb); 82 struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC);
83
84 if (newskb)
85 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc);
86 }
93 } 87 }
94 read_unlock_bh(&fakelb_ifup_phys_lock); 88 read_unlock_bh(&fakelb_ifup_phys_lock);
95 89