Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a8e28b8 authored by alex.bluesman.smirnov@gmail.com's avatar alex.bluesman.smirnov@gmail.com Committed by David S. Miller
Browse files

mac802154: add missed braces



Add missed braces after 'if' operator.

Signed-off-by: default avatarAlexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa214de0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);