]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rtlwifi: rtl8188ee: remove redundant assignment to rtstatus
authorColin Ian King <colin.king@canonical.com>
Sat, 8 Jun 2019 10:58:00 +0000 (11:58 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 05:02:09 +0000 (08:02 +0300)
Variable rtstatus is being initialized with a value that is never read
as rtstatus is being re-assigned a little later on. The assignment is
redundant and hence 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>
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c

index 454bab38b16511ec20501e790bb3134617525e06..f92e95f5494f3094a07c52dbf215d1b03243292d 100644 (file)
@@ -1039,7 +1039,7 @@ int rtl88ee_hw_init(struct ieee80211_hw *hw)
        struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
        struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
        struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
-       bool rtstatus = true;
+       bool rtstatus;
        int err = 0;
        u8 tmp_u1b, u1byte;
        unsigned long flags;