]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mt76: Remove an unneeded local variable in mt76x02_dma_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 17 Apr 2025 22:28:01 +0000 (00:28 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 May 2025 12:49:38 +0000 (14:49 +0200)
Remove 't' which is unneeded since commit f3950a414143 ("mt76: set
txwi_size according to the driver value")

This slightly simplifies the code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/e86d5602bdd8b6bd22258ee69536992f39470bf5.1744928865.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c

index a82c75ba26e660d8ca4d6cc3bc550327b62248d7..a683d53c7ceb83b08a289596885e4cd388781f09 100644 (file)
@@ -174,7 +174,6 @@ static int mt76x02_poll_tx(struct napi_struct *napi, int budget)
 
 int mt76x02_dma_init(struct mt76x02_dev *dev)
 {
-       struct mt76_txwi_cache __maybe_unused *t;
        int i, ret, fifo_size;
        struct mt76_queue *q;
        void *status_fifo;