aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-12-19 04:36:50 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-12-19 05:54:05 -0500
commitc8c7e3db819f4fc483793d55655cbbae045203f0 (patch)
tree56f95aaf0b1f72ec3e6951f548001c0f2e581b3d /drivers/net/ieee802154
parentcab9e3a0559c039b4e13b569fcf393618c661902 (diff)
at86rf230: cleanup check on trac status
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')
-rw-r--r--drivers/net/ieee802154/at86rf230.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 79fbf3809745..80632fc59756 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -749,13 +749,11 @@ at86rf230_tx_trac_check(void *context)
749 * to STATE_FORCE_TRX_OFF then STATE_TX_ON to recover the transceiver 749 * to STATE_FORCE_TRX_OFF then STATE_TX_ON to recover the transceiver
750 * state to TX_ON. 750 * state to TX_ON.
751 */ 751 */
752 if (trac) { 752 if (trac)
753 at86rf230_async_state_change(lp, ctx, STATE_FORCE_TRX_OFF, 753 at86rf230_async_state_change(lp, ctx, STATE_FORCE_TRX_OFF,
754 at86rf230_tx_trac_error, true); 754 at86rf230_tx_trac_error, true);
755 return; 755 else
756 } 756 at86rf230_tx_on(context);
757
758 at86rf230_tx_on(context);
759} 757}
760 758
761static void 759static void