iwlegacy: 4965-rs: remove unnecessary null check for sta and lq_sta
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Tue, 6 Sep 2011 23:31:13 +0000 (18:31 -0500)
committerStanislaw Gruszka <sgruszka@redhat.com>
Wed, 16 Nov 2011 11:52:59 +0000 (12:52 +0100)
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 <Gregory.Dietsche@cuw.edu>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
drivers/net/wireless/iwlegacy/4965-rs.c

index b0946a1ee37d329b77d470609663b8e18428974d..2ec808e40c9639e88212a98142dd880d9fd8fd0e 100644 (file)
@@ -1793,9 +1793,6 @@ il4965_rs_rate_scale_perform(struct il_priv *il, struct sk_buff *skb,
            (info->flags & IEEE80211_TX_CTL_NO_ACK))
                return;
 
-       if (!sta || !lq_sta)
-               return;
-
        lq_sta->supp_rates = sta->supp_rates[lq_sta->band];
 
        tid = il4965_rs_tl_add_packet(lq_sta, hdr);