Skip to content

Commit

Permalink
rtlwifi: rtl8192ee: Remove redundant initialization of variable version
Browse files Browse the repository at this point in the history
The variable version is being initialized with a value that is
never read, it is being updated afterwards in both branches of
an if statement. 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>
Link: https://lore.kernel.org/r/20211007163722.20165-1-colin.king@canonical.com
  • Loading branch information
Colin Ian King authored and Kalle Valo committed Oct 13, 2021
1 parent e3ec701 commit 51fd5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ static enum version_8192e _rtl92ee_read_chip_version(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &rtlpriv->phy;
enum version_8192e version = VERSION_UNKNOWN;
enum version_8192e version;
u32 value32;

rtlphy->rf_type = RF_2T2R;
Expand Down

0 comments on commit 51fd5c6

Please sign in to comment.