Skip to content

Commit 8a8e28b

Browse files
alex-bluesmandavem330
authored andcommitted
mac802154: add missed braces
Add missed braces after 'if' operator. Signed-off-by: Alexander Smirnov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aa214de commit 8a8e28b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/mac802154/tx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb,
8383
{
8484
struct xmit_work *work;
8585

86-
if (!(priv->phy->channels_supported[page] & (1 << chan)))
86+
if (!(priv->phy->channels_supported[page] & (1 << chan))) {
8787
WARN_ON(1);
8888
return NETDEV_TX_OK;
89+
}
8990

9091
if (!(priv->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
9192
u16 crc = crc_ccitt(0, skb->data, skb->len);

0 commit comments

Comments
 (0)