commit | 48ef5c427ac2cfd12c150b38263d3ebb0d989647 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Oct 17 10:28:23 2011 +0300 |
committer | John W. Linville <linville@tuxdriver.com> | Tue Nov 08 15:53:57 2011 -0500 |
tree | 1a55cd4b28046dd4ed05f6892667695228823b65 | |
parent | 59034591029e9f3b691fe02ff60938556dba5683 [diff] |
ath9k_hw: min_t() casts u32 to int The code here treats very large values of "limit" as less than MAX_POWER_RATE because of the cast to int. We should do the compare as u32 instead. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>