* [PATCH fix] mac802154: add missed braces
@ 2012-06-25 13:30 Alexander Smirnov
2012-06-25 13:46 ` Alexander Smirnov
2012-06-25 23:35 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Smirnov @ 2012-06-25 13:30 UTC (permalink / raw)
To: davem; +Cc: netdev, Alexander Smirnov
Add missed braces after 'if' operator.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
---
net/mac802154/tx.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index 8781d8f9..434b687 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -83,9 +83,10 @@ netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb,
{
struct xmit_work *work;
- if (!(priv->phy->channels_supported[page] & (1 << chan)))
+ if (!(priv->phy->channels_supported[page] & (1 << chan))) {
WARN_ON(1);
return NETDEV_TX_OK;
+ }
if (!(priv->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
u16 crc = crc_ccitt(0, skb->data, skb->len);
--
1.7.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH fix] mac802154: add missed braces
2012-06-25 13:30 [PATCH fix] mac802154: add missed braces Alexander Smirnov
@ 2012-06-25 13:46 ` Alexander Smirnov
2012-06-25 23:35 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Smirnov @ 2012-06-25 13:46 UTC (permalink / raw)
To: davem; +Cc: netdev, Alexander Smirnov
Sorry, forgot the tag, this patch is for the "net" tree.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH fix] mac802154: add missed braces
2012-06-25 13:30 [PATCH fix] mac802154: add missed braces Alexander Smirnov
2012-06-25 13:46 ` Alexander Smirnov
@ 2012-06-25 23:35 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2012-06-25 23:35 UTC (permalink / raw)
To: alex.bluesman.smirnov; +Cc: netdev
From: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Date: Mon, 25 Jun 2012 17:30:13 +0400
> Add missed braces after 'if' operator.
>
> Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-25 23:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25 13:30 [PATCH fix] mac802154: add missed braces Alexander Smirnov
2012-06-25 13:46 ` Alexander Smirnov
2012-06-25 23:35 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).