Skip to content

Commit

Permalink
mac802154: add missed braces
Browse files Browse the repository at this point in the history
Add missed braces after 'if' operator.

Signed-off-by: Alexander Smirnov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
alex-bluesman authored and davem330 committed Jun 25, 2012
1 parent aa214de commit 8a8e28b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/mac802154/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8a8e28b

Please sign in to comment.