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:

committed by
Kalle Valo

parent
af8a9a67c3
commit
f898005ff9
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user