diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-01-28 16:22:02 +0000 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-02-08 13:15:41 +0200 |
commit | 1d5248882d64e327e70c0f15cadc4dfd9539c990 (patch) | |
tree | 5c22bd3fe84408af49509cd822885cc2e37ab324 | |
parent | ae30a740a1769d7afb37245b058aeb5e6e83f492 (diff) | |
download | linux-stable-1d5248882d64e327e70c0f15cadc4dfd9539c990.tar.gz linux-stable-1d5248882d64e327e70c0f15cadc4dfd9539c990.tar.bz2 linux-stable-1d5248882d64e327e70c0f15cadc4dfd9539c990.zip |
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
-rw-r--r-- | drivers/net/wireless/marvell/libertas/if_sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/libertas/if_sdio.c b/drivers/net/wireless/marvell/libertas/if_sdio.c index 44fbd0acb87a..a63c5e622ee3 100644 --- a/drivers/net/wireless/marvell/libertas/if_sdio.c +++ b/drivers/net/wireless/marvell/libertas/if_sdio.c @@ -981,7 +981,7 @@ out: static int if_sdio_enter_deep_sleep(struct lbs_private *priv) { - int ret = -1; + int ret; struct cmd_header cmd; memset(&cmd, 0, sizeof(cmd)); |