]> git.baikalelectronics.ru Git - kernel.git/commit
mt7601u: Remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 7 Oct 2021 23:41:53 +0000 (00:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 13 Oct 2021 06:21:09 +0000 (09:21 +0300)
commitb533c65f963e944b09b74818929887fa53b79bef
treee4acbf08561103e066ed338cf3bc4c522c270ab0
parent57e6148ad94eb1832f8491c61608a1ac51f4df50
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
drivers/net/wireless/mediatek/mt7601u/dma.c