From 9a2398993235e49d5935774341ea2609b0b005ec Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 13 Apr 2018 10:41:47 +0200 Subject: [PATCH] mt7603: remove warning on rx with invalid channel info This can happen during a watchdog reset and is harmless Signed-off-by: Felix Fietkau --- mt7603_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7603_mac.c b/mt7603_mac.c index c7d90742e..93dfecb05 100644 --- a/mt7603_mac.c +++ b/mt7603_mac.c @@ -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;