mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
rtlwifi: remove superfluous condition
If sta == NULL, the changed line will not be reached. So no need to check that sta != NULL here. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
af8a9a67c3
commit
f898005ff9
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue