Skip to content

Commit

Permalink
mt7603: remove warning on rx with invalid channel info
Browse files Browse the repository at this point in the history
This can happen during a watchdog reset and is harmless

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Apr 13, 2018
1 parent f36f308 commit 9a23989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7603_mac.c
Expand Up @@ -438,7 +438,7 @@ mt7603_mac_fill_rx(struct mt7603_dev *dev, struct sk_buff *skb)
if (rxd2 & MT_RXD2_NORMAL_MAX_LEN_ERROR)
return -EINVAL;

if (WARN_ON_ONCE(!sband->channels))
if (!sband->channels)
return -EINVAL;

rxd += 4;
Expand Down

0 comments on commit 9a23989

Please sign in to comment.