]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: fix bitshift calculation in r819xU_phy.c
authorXenia Ragiadakou <burzalodowa@gmail.com>
Sat, 15 Jun 2013 04:29:01 +0000 (07:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 22:45:43 +0000 (15:45 -0700)
commit970f594e9253457bdec42a6f8af2a4499206b3b8
tree2dd62061b534dbf4d63e26bb38da3d926328e998
parentc3b6f36a3d20f8d9a0db9d4b4de369fdefdab6ad
staging: rtl8192u: fix bitshift calculation in r819xU_phy.c

This patch uses the ffs linux built-in routine in the
computation of the bitshift to take advantage of
architecture specific instructions that implement this
computation more efficiently.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r819xU_phy.c