]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 28 Jan 2021 16:22:02 +0000 (16:22 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Feb 2021 11:15:41 +0000 (13:15 +0200)
commit86200bae39df9f7ac07c560ea5b5ec700124fb87
tree5c22bd3fe84408af49509cd822885cc2e37ab324
parenteb9e56f2f5ed5315bdf8665cc40ec69cb7a90005
libertas: remove redundant initialization of variable ret

The variable ret is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210128162202.642848-1-colin.king@canonical.com
drivers/net/wireless/marvell/libertas/if_sdio.c