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
This commit is contained in:
Colin Ian King 2021-01-28 16:22:02 +00:00 committed by Kalle Valo
parent ae30a740a1
commit 1d5248882d

View file

@ -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));