Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f898005f authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Kalle Valo
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent af8a9a67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();