Skip to content

Commit

Permalink
iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Dietsche authored and Stanislaw Gruszka committed Nov 16, 2011
1 parent 730b4c2 commit da6134d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlegacy/4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit da6134d

Please sign in to comment.