Skip to content

Commit

Permalink
mt7601u: Remove redundant initialization of variable ret
Browse files Browse the repository at this point in the history
The variable ret is being initialized with a value that is never read,
it is assigned later on with a different value. The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211007234153.31222-1-colin.king@canonical.com
  • Loading branch information
Colin Ian King authored and Kalle Valo committed Oct 13, 2021
1 parent 51fd5c6 commit 3e4beec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt7601u/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int mt7601u_alloc_tx(struct mt7601u_dev *dev)

int mt7601u_dma_init(struct mt7601u_dev *dev)
{
int ret = -ENOMEM;
int ret;

tasklet_setup(&dev->tx_tasklet, mt7601u_tx_tasklet);
tasklet_setup(&dev->rx_tasklet, mt7601u_rx_tasklet);
Expand Down

0 comments on commit 3e4beec

Please sign in to comment.