On Thu, Jul 24, 2014 at 03:02:21PM +0530, varkabhad...@gmail.com wrote: > From: Varka Bhadram <var...@cdac.in> > > 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 <var...@cdac.in> > --- > net/mac802154/rx.c | 5 ++--- > 1 file 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; >
Thanks, applied. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel