diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-27 12:13:34 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-27 13:07:43 -0400 |
commit | 469100d6c2ff22cd1f50672ac6d09a1633334489 (patch) | |
tree | 24d49994c9a7b246f40a083885d330b638dc4fe0 /net/mac802154 | |
parent | 4ca18be54f507ddb2bedb44c2e3b988163684988 (diff) |
mac802154: rx: rename remove mac802154_subif_rx
This patch removes the mac802154_subif_rx function and do the necessary
calls inside of ieee802154_rx function. The ieee802154_rx is small
enough to move the functionality inside this function.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/rx.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 04f3d61719ec..246a60e8f76a 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
@@ -242,11 +242,12 @@ mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) | |||
242 | rcu_read_unlock(); | 242 | rcu_read_unlock(); |
243 | } | 243 | } |
244 | 244 | ||
245 | static void | 245 | void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb) |
246 | mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb) | ||
247 | { | 246 | { |
248 | struct ieee802154_local *local = hw_to_local(hw); | 247 | struct ieee802154_local *local = hw_to_local(hw); |
249 | 248 | ||
249 | WARN_ON_ONCE(softirq_count() == 0); | ||
250 | |||
250 | skb->protocol = htons(ETH_P_IEEE802154); | 251 | skb->protocol = htons(ETH_P_IEEE802154); |
251 | skb_reset_mac_header(skb); | 252 | skb_reset_mac_header(skb); |
252 | 253 | ||
@@ -273,13 +274,6 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb) | |||
273 | fail: | 274 | fail: |
274 | kfree_skb(skb); | 275 | kfree_skb(skb); |
275 | } | 276 | } |
276 | |||
277 | void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb) | ||
278 | { | ||
279 | WARN_ON_ONCE(softirq_count() == 0); | ||
280 | |||
281 | mac802154_subif_rx(hw, skb); | ||
282 | } | ||
283 | EXPORT_SYMBOL(ieee802154_rx); | 277 | EXPORT_SYMBOL(ieee802154_rx); |
284 | 278 | ||
285 | void | 279 | void |