mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-05 21:35:04 +08:00
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
This commit is contained in:
parent
2377b1c49d
commit
87431bc1f0
@ -1070,7 +1070,6 @@ int rtl_usb_probe(struct usb_interface *intf,
|
||||
err = ieee80211_register_hw(hw);
|
||||
if (err) {
|
||||
pr_err("Can't register mac80211 hw.\n");
|
||||
err = -ENODEV;
|
||||
goto error_out;
|
||||
}
|
||||
rtlpriv->mac80211.mac80211_registered = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user