diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-12-15 10:25:53 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-19 00:19:25 +0100 |
commit | 5f5c5c23e3b71110c0215f9ea20e5434b68871f1 (patch) | |
tree | a14179230738b08ebeff4e2be352d7de3aeaa7fa /drivers/net/ieee802154/at86rf230.c | |
parent | ce261bc3ff376ef5e85b682c760326893ab22ba5 (diff) | |
download | blackbird-op-linux-5f5c5c23e3b71110c0215f9ea20e5434b68871f1.tar.gz blackbird-op-linux-5f5c5c23e3b71110c0215f9ea20e5434b68871f1.zip |
at86rf230: remove if branch
This patch removes an unnecessary if branch inside the tx complete
handler.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <s.schmidt@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154/at86rf230.c')
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 2f66b8a81acd..59209f35ec6b 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -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 |