Commit 5f5c5c23 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

at86rf230: remove if branch

This patch removes an unnecessary if branch inside the tx complete
handler.
Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Reviewed-by: default avatarStefan Schmidt <s.schmidt@samsung.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent ce261bc3
......@@ -714,10 +714,7 @@ at86rf230_tx_complete(void *context)
enable_irq(lp->spi->irq);
if (lp->max_frame_retries <= 0)
ieee802154_xmit_complete(lp->hw, skb, true);
else
ieee802154_xmit_complete(lp->hw, skb, false);
ieee802154_xmit_complete(lp->hw, skb, !lp->tx_aret);
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment