commit | 9a3916910548e419f4da438406f84af9e05f72eb | [log] [tgz] |
---|---|---|
author | Nick Kossifidis <mickflemm@gmail.com> | Fri Nov 25 20:40:31 2011 +0200 |
committer | John W. Linville <linville@tuxdriver.com> | Mon Nov 28 14:44:23 2011 -0500 |
tree | 2b40d8c0eb5467cddb7a8fda615bb4343cd1614f | |
parent | b4cfb5d574cd9e23e41462061941f6ac68a41c80 [diff] |
ath5k: Optimize ath5k_cw_validate Optimize ath5k_cw_validate by using the classic (X & (X - 1)) == 0 check to see if a number is power of 2. v2: Use functions from log2.h instead Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>