staging: rtl8192e: Simplify _rtl92e_calculate_bit_shift
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 20 Sep 2015 19:04:32 +0000 (21:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:26:07 +0000 (04:26 +0200)
commit77b6c42e0278decff0c98999fb835f36048415ab
tree5f5b1cb2880423ec1f2f52ea6329b426540ebc94
parentfcf481dbbd80e1206804a0fae3fd5c1debebe11c
staging: rtl8192e: Simplify _rtl92e_calculate_bit_shift

Use ffs instead of iteration. Behaviour of function doesn't change.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c