diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-10-08 01:41:53 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-10-13 08:21:09 +0200 |
commit | 3e4beec5e67935cd201d1eb7e72b5d34b188ba0f (patch) | |
tree | e4acbf08561103e066ed338cf3bc4c522c270ab0 /drivers/net/wireless/mediatek/mt7601u/dma.c | |
parent | rtlwifi: rtl8192ee: Remove redundant initialization of variable version (diff) | |
download | linux-3e4beec5e67935cd201d1eb7e72b5d34b188ba0f.tar.xz linux-3e4beec5e67935cd201d1eb7e72b5d34b188ba0f.zip |
mt7601u: Remove redundant initialization of variable ret
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
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/mediatek/mt7601u/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt7601u/dma.c b/drivers/net/wireless/mediatek/mt7601u/dma.c index ed78d2cb35e3..457147394edc 100644 --- a/drivers/net/wireless/mediatek/mt7601u/dma.c +++ b/drivers/net/wireless/mediatek/mt7601u/dma.c @@ -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); |