Skip to content

Commit

Permalink
iwlegacy: 4965-rs: remove unnecessary null check for sta and lq_sta
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Dietsche authored and Stanislaw Gruszka committed Nov 16, 2011
1 parent da6134d commit 144c096
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/iwlegacy/4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 144c096

Please sign in to comment.