projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8a9a6
)
rtlwifi: remove superfluous condition
author
Heinrich Schuchardt
<
[email protected]
>
Tue, 2 Aug 2016 19:26:21 +0000
(21:26 +0200)
committer
Kalle Valo
<
[email protected]
>
Sat, 3 Sep 2016 10:03:03 +0000
(13:03 +0300)
If sta == NULL, the changed line will not be reached.
So no need to check that sta != NULL here.
Signed-off-by: Heinrich Schuchardt <
[email protected]
>
Acked-by: Larry Finger <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/realtek/rtlwifi/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtlwifi/core.c
b/drivers/net/wireless/realtek/rtlwifi/core.c
index 41f77f8a309e751be975a4ed2abdccc61fd6dc10..7aee5ebb147daa6e46a865939cb67152ccaf2ab5 100644
(file)
--- a/
drivers/net/wireless/realtek/rtlwifi/core.c
+++ b/
drivers/net/wireless/realtek/rtlwifi/core.c
@@
-1135,7
+1135,7
@@
static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
mac->mode = WIRELESS_MODE_AC_24G;
}
- if (vif->type == NL80211_IFTYPE_STATION
&& sta
)
+ if (vif->type == NL80211_IFTYPE_STATION)
rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0);
rcu_read_unlock();