Skip to content

Commit c3a9133

Browse files
Colin Ian KingKalle Valo
authored andcommitted
rtlwifi: rtl8188ee: remove redundant assignment to variable cond
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 <[email protected]> Acked-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent ed7791d commit c3a9133

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/realtek/rtlwifi/rtl8188ee

1 file changed

+1
-1
lines changed

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static bool _rtl88e_check_condition(struct ieee80211_hw *hw,
264264
u32 _board = rtlefuse->board_type; /*need efuse define*/
265265
u32 _interface = rtlhal->interface;
266266
u32 _platform = 0x08;/*SupportPlatform */
267-
u32 cond = condition;
267+
u32 cond;
268268

269269
if (condition == 0xCDCDCDCD)
270270
return true;

0 commit comments

Comments
 (0)