projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce261bc
)
at86rf230: remove if branch
author
Alexander Aring
<alex.aring@gmail.com>
Mon, 15 Dec 2014 09:25:53 +0000
(10:25 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 18 Dec 2014 23:19:25 +0000
(
00:19
+0100)
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>
drivers/net/ieee802154/at86rf230.c
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/at86rf230.c
b/drivers/net/ieee802154/at86rf230.c
index 2f66b8a81acd3d28c24a2d95be9f6bd13e39e7fe..59209f35ec6b2238a585654cfac3ee7547470fa3 100644
(file)
--- 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