Commit 1d524888 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210128162202.642848-1-colin.king@canonical.com
parent ae30a740
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -981,7 +981,7 @@ static int if_sdio_host_to_card(struct lbs_private *priv,

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