mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
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:
committed by
Kalle Valo
parent
ae30a740a1
commit
1d5248882d
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user