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

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
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment