Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef5428a1 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

at86rf230: cleanup and squash stack variable



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: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent ba6d2239
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -725,11 +725,10 @@ at86rf230_tx_complete(void *context)
{
{
	struct at86rf230_state_change *ctx = context;
	struct at86rf230_state_change *ctx = context;
	struct at86rf230_local *lp = ctx->lp;
	struct at86rf230_local *lp = ctx->lp;
	struct sk_buff *skb = lp->tx_skb;


	enable_irq(lp->spi->irq);
	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
static void