at86rf230: cleanup and squash stack variable
authorAlexander Aring <alex.aring@gmail.com>
Sun, 1 Mar 2015 20:55:29 +0000 (21:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 3 Mar 2015 01:15:25 +0000 (02:15 +0100)
I had this variable because I thought it would be protected by
disable/enable irq but this is not true. It's protected by stop/wake
netdev queue which is called by ieee802154_xmit_complete.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index 503fabddd431ef51895a0ed4af0e587ae7379ba3..85012201eaf5750e961f838914a460d34ab004ba 100644 (file)
@@ -725,11 +725,10 @@ at86rf230_tx_complete(void *context)
 {
        struct at86rf230_state_change *ctx = context;
        struct at86rf230_local *lp = ctx->lp;
-       struct sk_buff *skb = lp->tx_skb;
 
        enable_irq(lp->spi->irq);
 
-       ieee802154_xmit_complete(lp->hw, skb, !lp->tx_aret);
+       ieee802154_xmit_complete(lp->hw, lp->tx_skb, !lp->tx_aret);
 }
 
 static void