iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_status
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Tue, 6 Sep 2011 22:38:34 +0000 (17:38 -0500)
committerStanislaw Gruszka <sgruszka@redhat.com>
Wed, 16 Nov 2011 11:52:21 +0000 (12:52 +0100)
the null check on sta in il4965_rs_tx_status is not necessary

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
drivers/net/wireless/iwlegacy/4965-rs.c

index 93c3a4d9b9b59887cf21f151d18c84db90ed0409..b0946a1ee37d329b77d470609663b8e18428974d 100644 (file)
@@ -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);
 }