From: Greg Dietsche Date: Wed, 28 Sep 2011 22:54:04 +0000 (-0500) Subject: iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta X-Git-Tag: MMI-PSA29.97-13-9~18194^2~83^2~155 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a76011e2cbb6915f60488477311e0f269cee6496;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Greg Dietsche Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index c14f8d6fd7d8..7d6a3bf64950 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c @@ -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);