Commit 8993a5af authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

rtlwifi: remove redundant assignment to variable err



[ Upstream commit 87431bc1 ]

Variable err is assigned -ENODEV followed by an error return path
via label error_out that does not access the variable and returns
with the -ENODEV error return code. The assignment to err 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/20210327230014.25554-1-colin.king@canonical.com


Stable-dep-of: b4b26642 ("wifi: rtlwifi: wait for firmware loading before releasing memory")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cc5f444d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment