diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2015-07-07 01:20:43 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-07-23 11:10:50 -0400 |
commit | d10270ce941ee89afd74076ea3ed8dbef8a0ff25 (patch) | |
tree | 7f8a76b666eb5d16eadfa1dc58420a018cbb6bb8 /net/mac802154/rx.c | |
parent | 729a8989b3fa8ae7965c537dfccbd08512e84d3c (diff) |
mac802154: fix ieee802154_rx handling
Instead of passing ieee802154_hw pointer to ieee802154_rx,
we can directly pass the ieee802154_local pointer.
Signed-off-by: Varka Bhadram <varkabhadram@gmail.com>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/rx.c')
-rw-r--r-- | net/mac802154/rx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 7791c9b8cb57..d1c33c1d6b9b 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
@@ -246,9 +246,8 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) | |||
246 | } | 246 | } |
247 | } | 247 | } |
248 | 248 | ||
249 | void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb) | 249 | void ieee802154_rx(struct ieee802154_local *local, struct sk_buff *skb) |
250 | { | 250 | { |
251 | struct ieee802154_local *local = hw_to_local(hw); | ||
252 | u16 crc; | 251 | u16 crc; |
253 | 252 | ||
254 | WARN_ON_ONCE(softirq_count() == 0); | 253 | WARN_ON_ONCE(softirq_count() == 0); |