From: Alexander Aring <alex.aring@gmail.com>
To: linux-wpan@vger.kernel.org
Cc: kernel@pengutronix.de, Alexander Aring <alex.aring@gmail.com>
Subject: [PATCH bluetooth-next 4/5] at86rf230: cleanup check on trac status
Date: Mon, 15 Dec 2014 00:20:31 +0100 [thread overview]
Message-ID: <1418599232-6267-5-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1418599232-6267-1-git-send-email-alex.aring@gmail.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
drivers/net/ieee802154/at86rf230.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 08b2f9f..7b0a17e 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -750,13 +750,11 @@ at86rf230_tx_trac_check(void *context)
* to STATE_FORCE_TRX_OFF then STATE_TX_ON to recover the transceiver
* state to TX_ON.
*/
- if (trac) {
+ if (trac)
at86rf230_async_state_change(lp, ctx, STATE_FORCE_TRX_OFF,
at86rf230_tx_trac_error, true);
- return;
- }
-
- at86rf230_tx_on(context);
+ else
+ at86rf230_tx_on(context);
}
--
2.1.3
next prev parent reply other threads:[~2014-12-14 23:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-14 23:20 [PATCH bluetooth-next 0/5] at86rf230: cleanups Alexander Aring
2014-12-14 23:20 ` [PATCH bluetooth-next 1/5] at86rf230: remove if branch Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-15 8:45 ` Alexander Aring
2014-12-15 8:49 ` Alexander Aring
2014-12-14 23:20 ` [PATCH bluetooth-next 2/5] at86rf230: make at86rf230_async_error inline Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-15 8:39 ` Alexander Aring
2014-12-15 9:01 ` Stefan Schmidt
2014-12-15 9:04 ` Alexander Aring
2014-12-14 23:20 ` [PATCH bluetooth-next 3/5] at86rf230: fix context pointer handling Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-14 23:20 ` Alexander Aring [this message]
2014-12-15 8:29 ` [PATCH bluetooth-next 4/5] at86rf230: cleanup check on trac status Stefan Schmidt
2014-12-14 23:20 ` [PATCH bluetooth-next 5/5] at86rf230: remove unnecessary assign Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418599232-6267-5-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-wpan@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.