Skip to content

Commit 24bbd44

Browse files
bhadramholtmann
authored andcommitted
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>
1 parent 6f48e26 commit 24bbd44

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎net/mac802154/rx.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ mac802154_subif_rx(struct ieee802154_dev *hw, struct sk_buff *skb, u8 lqi)
8686
static void mac802154_rx_worker(struct work_struct *work)
8787
{
8888
struct rx_work *rw = container_of(work, struct rx_work, work);
89-
struct sk_buff *skb = rw->skb;
9089

91-
mac802154_subif_rx(rw->dev, skb, rw->lqi);
90+
mac802154_subif_rx(rw->dev, rw->skb, rw->lqi);
9291
kfree(rw);
9392
}
9493

@@ -101,7 +100,7 @@ ieee802154_rx_irqsafe(struct ieee802154_dev *dev, struct sk_buff *skb, u8 lqi)
101100
if (!skb)
102101
return;
103102

104-
work = kzalloc(sizeof(struct rx_work), GFP_ATOMIC);
103+
work = kzalloc(sizeof(*work), GFP_ATOMIC);
105104
if (!work)
106105
return;
107106

0 commit comments

Comments
 (0)