linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: marcel@holtmann.org, linux-wpan@vger.kernel.org,
	kernel@pengutronix.de, Varka Bhadram <varkab@cdac.in>,
	Alexander Aring <alex.aring@gmail.com>
Subject: [PATCH 1/4] mac802154: cleanup in rx path
Date: Mon, 11 Aug 2014 13:25:07 +0200	[thread overview]
Message-ID: <1407756310-26592-2-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1407756310-26592-1-git-send-email-alex.aring@gmail.com>

From: Varka Bhadram <varkab@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 <varkab@cdac.in>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 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;
 
-- 
2.0.3

  reply	other threads:[~2014-08-11 11:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11 11:25 pull-request: wpan-next 2014-08-11 Alexander Aring
2014-08-11 11:25 ` Alexander Aring [this message]
2014-08-11 19:18   ` [PATCH 1/4] mac802154: cleanup in rx path Marcel Holtmann
2014-08-11 11:25 ` [PATCH 2/4] mac802154: common error path Alexander Aring
2014-08-11 19:18   ` Marcel Holtmann
2014-08-11 11:25 ` [PATCH 3/4] ieee802154: 6lowpan: remove unused function Alexander Aring
2014-08-11 19:17   ` Marcel Holtmann
2014-08-11 11:25 ` [PATCH 4/4] mac802154: common tx error path Alexander Aring
2014-08-11 19:17   ` Marcel Holtmann
2014-08-11 11:39 ` pull-request: wpan-next 2014-08-11 Alexander Aring
2014-08-11 19:24   ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1407756310-26592-2-git-send-email-alex.aring@gmail.com \
    --to=alex.aring@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-wpan@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=varkab@cdac.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).