]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rtlwifi: rtl8192se: remove redundant initialization of variable rtstatus
authorColin Ian King <colin.king@canonical.com>
Thu, 28 Jan 2021 17:10:48 +0000 (17:10 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Feb 2021 10:39:07 +0000 (12:39 +0200)
The variable rtstatu is being initialized with a value that is never
read and it is being updated later with a new value.  The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210128171048.644669-1-colin.king@canonical.com
drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c

index 63283d9e748506493e75083f061bba66a2bfa18a..aaa004d4d6d0a98e3690f9b23517a885d7c88d79 100644 (file)
@@ -1017,7 +1017,7 @@ bool rtl92s_phy_bb_config(struct ieee80211_hw *hw)
 {
        struct rtl_priv *rtlpriv = rtl_priv(hw);
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
-       bool rtstatus = true;
+       bool rtstatus;
        u8 pathmap, index, rf_num = 0;
        u8 path1, path2;