projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c94c3c5
)
ath5k: drop useless comparison
author
Bob Copeland
<me@bobcopeland.com>
Fri, 22 Aug 2014 13:18:00 +0000
(09:18 -0400)
committer
John W. Linville
<linville@tuxdriver.com>
Thu, 28 Aug 2014 18:41:56 +0000
(14:41 -0400)
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>
drivers/net/wireless/ath/ath5k/base.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/base.c
b/drivers/net/wireless/ath/ath5k/base.c
index 8ad2550bce7ff4820511a606a30d10f81e09b91d..59a87247aac4ca5fe43eb55a5a3b60ae2f10adc2 100644
(file)
--- 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,
break;
}
- if (r
xs->rate_idx >= 0 && r
s->rs_rate ==
+ if (rs->rs_rate ==
ah->sbands[ah->curchan->band].bitrates[rxs->rate_idx].hw_value_short)
rxs->flag |= RX_FLAG_SHORTPRE;