ath5k: Optimize ath5k_cw_validate
authorNick Kossifidis <mickflemm@gmail.com>
Fri, 25 Nov 2011 18:40:31 +0000 (20:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 19:44:23 +0000 (14:44 -0500)
commit9a3916910548e419f4da438406f84af9e05f72eb
tree2b40d8c0eb5467cddb7a8fda615bb4343cd1614f
parentb4cfb5d574cd9e23e41462061941f6ac68a41c80
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>
drivers/net/wireless/ath/ath5k/qcu.c