rtlwifi: rtl8188ee: remove redundant assignment to variable cond
authorColin Ian King <colin.king@canonical.com>
Tue, 14 Jan 2020 16:56:01 +0000 (16:56 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:45:15 +0000 (17:45 +0200)
Variable cond is being assigned with a value that is never
read, it is assigned a new value later on. The assignment is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c

index 5ca900f..d13983e 100644 (file)
@@ -264,7 +264,7 @@ static bool _rtl88e_check_condition(struct ieee80211_hw *hw,
        u32 _board = rtlefuse->board_type; /*need efuse define*/
        u32 _interface = rtlhal->interface;
        u32 _platform = 0x08;/*SupportPlatform */
-       u32 cond = condition;
+       u32 cond;
 
        if (condition == 0xCDCDCDCD)
                return true;