From: Lorenzo Bianconi Date: Tue, 9 Sep 2025 09:45:10 +0000 (+0200) Subject: wifi: mt76: Remove q->ndesc check in mt76_dma_rx_fill() X-Git-Tag: v6.18-rc1~132^2~56^2~27^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2182974e9fd06a2cf78f60ee0ae38a22db4d2126;p=thirdparty%2Fkernel%2Flinux.git wifi: mt76: Remove q->ndesc check in mt76_dma_rx_fill() Remove q->ndesc check in mt76_dma_rx_fill routine since this is already done in mt76_dma_rx_fill_buf(). Signed-off-by: Lorenzo Bianconi Link: https://patch.msgid.link/20250909-mt7996-rro-rework-v5-2-7d66f6eb7795@kernel.org Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c index 25c26ff8c8e24..18c2a2de59897 100644 --- a/drivers/net/wireless/mediatek/mt76/dma.c +++ b/drivers/net/wireless/mediatek/mt76/dma.c @@ -671,9 +671,6 @@ int mt76_dma_rx_fill(struct mt76_dev *dev, struct mt76_queue *q, { int frames; - if (!q->ndesc) - return 0; - spin_lock_bh(&q->lock); frames = mt76_dma_rx_fill_buf(dev, q, allow_direct); spin_unlock_bh(&q->lock);