linux/drivers/staging/rtl8723au
Tapasweni Pathak 4ecdc381d7 staging: rtl8723au: core: Replace open coded version with existing hweight function
This patch replaces the open coded version with Linux's existing hweight
functions.
The original version checked each of the low four bits, accumulating and
returning the result. Instead, use a mask to select those four bits, and
pass the result to hweight8.
It also makes the code in this function simpler.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-20 10:29:17 +08:00
..
core staging: rtl8723au: core: Replace open coded version with existing hweight function 2014-10-20 10:29:17 +08:00
hal staging: rtl8723au: hal: Removed unnecessary braces. 2014-09-28 23:11:26 -04:00
include Staging: rtl8723au: include: Remove unused macros 2014-10-20 10:29:17 +08:00
os_dep Staging: rtl8723au: os_dep: Removed variable that is always 0. 2014-10-20 10:29:11 +08:00
Kconfig staging: rtl8723au: Remove P2P/WiFiDirect/WiFiDisplay code 2014-04-15 11:03:56 -07:00
Makefile staging: rtl8723au: Add compiler check for -Wtype-limits 2014-06-18 14:08:58 -07:00
TODO staging: r8723au: Turn on build of new driver 2014-04-05 14:53:46 -07:00