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

Commit a76011e2 authored by Greg Dietsche's avatar Greg Dietsche Committed by John W. Linville
Browse files

iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta



both sta and lq_sta are guaranteed to be not null in the
calling function so we don't need to check them here.

Signed-off-by: default avatarGreg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 90826313
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2273,9 +2273,6 @@ static void rs_rate_scale_perform(struct iwl_priv *priv,
	    info->flags & IEEE80211_TX_CTL_NO_ACK)
		return;

	if (!sta || !lq_sta)
		return;

	lq_sta->supp_rates = sta->supp_rates[lq_sta->band];

	tid = rs_tl_add_packet(lq_sta, hdr);