From: Greg Dietsche Date: Tue, 6 Sep 2011 22:38:34 +0000 (-0500) Subject: iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_status X-Git-Tag: v3.3-rc1~182^2~44^2~385^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da6134d2537363775c73e96186c0d5eb9b2c6b1c;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_status the null check on sta in il4965_rs_tx_status is not necessary Signed-off-by: Greg Dietsche Signed-off-by: Stanislaw Gruszka --- diff --git a/drivers/net/wireless/iwlegacy/4965-rs.c b/drivers/net/wireless/iwlegacy/4965-rs.c index 93c3a4d..b0946a1 100644 --- a/drivers/net/wireless/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/iwlegacy/4965-rs.c @@ -991,7 +991,7 @@ il4965_rs_tx_status(void *il_r, struct ieee80211_supported_band *sband, lq_sta->last_rate_n_flags = tx_rate; done: /* See if there's a better rate or modulation mode to try. */ - if (sta && sta->supp_rates[sband->band]) + if (sta->supp_rates[sband->band]) il4965_rs_rate_scale_perform(il, skb, sta, lq_sta); }