diff options
author | Varka Bhadram <varkab@cdac.in> | 2014-08-11 11:25:07 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-08-14 06:49:24 (GMT) |
commit | 24bbd44a96c7a209fafbf1b28f0ac1a00cf4e551 (patch) | |
tree | 3ca0b2583e146ff3265ee4b7fe422eb80630f6ac | |
parent | 6f48e260a95c1a0161e5be39adb0f20c737fe459 (diff) | |
download | linux-24bbd44a96c7a209fafbf1b28f0ac1a00cf4e551.tar.xz |
mac802154: cleanup in rx path
This patch replace the sizeof(struct rx_work) with sizeof(*work)
and directly passing the skb in mac802154_subif_rx()
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | net/mac802154/rx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 7f820a1..a14cf9e 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c @@ -86,9 +86,8 @@ fail: static void mac802154_rx_worker(struct work_struct *work) { struct rx_work *rw = container_of(work, struct rx_work, work); - struct sk_buff *skb = rw->skb; - mac802154_subif_rx(rw->dev, skb, rw->lqi); + mac802154_subif_rx(rw->dev, rw->skb, rw->lqi); kfree(rw); } @@ -101,7 +100,7 @@ ieee802154_rx_irqsafe(struct ieee802154_dev *dev, struct sk_buff *skb, u8 lqi) if (!skb) return; - work = kzalloc(sizeof(struct rx_work), GFP_ATOMIC); + work = kzalloc(sizeof(*work), GFP_ATOMIC); if (!work) return; |