rtlwifi: remove redundant assignment to variable err
authorColin Ian King <colin.king@canonical.com>
Sat, 27 Mar 2021 23:00:14 +0000 (23:00 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 17 Apr 2021 17:29:16 +0000 (20:29 +0300)
commit87431bc1f0f67aa2d23ca1b9682fe54f68549d42
tree7b14a4208e3453f56823c8e0a045c2219fe6cb8f
parent2377b1c49d4831c09af269cdbe21791e8945cf97
rtlwifi: remove redundant assignment to variable err

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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210327230014.25554-1-colin.king@canonical.com
drivers/net/wireless/realtek/rtlwifi/usb.c