diff options
author | Bob Copeland <me@bobcopeland.com> | 2014-08-22 09:18:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-28 14:41:56 -0400 |
commit | e6938ea4d56cca1dc7984428d3af79b27ce1db51 (patch) | |
tree | 6725437768d7352b12293ee1eac4c825cdbb73e2 /drivers/net/wireless/ath/ath5k | |
parent | c94c3c5e5e6bb3dd4041490a0202bab6e4c6e424 (diff) |
ath5k: drop useless comparison
rxs->rate_idx is unsigned, so it will always be >= 0.
Found by Coverity.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 8ad2550bce7f..59a87247aac4 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -1423,7 +1423,7 @@ ath5k_receive_frame(struct ath5k_hw *ah, struct sk_buff *skb, | |||
1423 | break; | 1423 | break; |
1424 | } | 1424 | } |
1425 | 1425 | ||
1426 | if (rxs->rate_idx >= 0 && rs->rs_rate == | 1426 | if (rs->rs_rate == |
1427 | ah->sbands[ah->curchan->band].bitrates[rxs->rate_idx].hw_value_short) | 1427 | ah->sbands[ah->curchan->band].bitrates[rxs->rate_idx].hw_value_short) |
1428 | rxs->flag |= RX_FLAG_SHORTPRE; | 1428 | rxs->flag |= RX_FLAG_SHORTPRE; |
1429 | 1429 | ||