diff options
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 6857038111a0..44d2f1de31e0 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
@@ -690,8 +690,10 @@ at86rf230_sync_state_change(struct at86rf230_local *lp, unsigned int state) | |||
690 | 690 | ||
691 | rc = wait_for_completion_timeout(&lp->state_complete, | 691 | rc = wait_for_completion_timeout(&lp->state_complete, |
692 | msecs_to_jiffies(100)); | 692 | msecs_to_jiffies(100)); |
693 | if (!rc) | 693 | if (!rc) { |
694 | at86rf230_async_error(lp, &lp->state, -ETIMEDOUT); | ||
694 | return -ETIMEDOUT; | 695 | return -ETIMEDOUT; |
696 | } | ||
695 | 697 | ||
696 | return 0; | 698 | return 0; |
697 | } | 699 | } |