staging: r8188eu: use ffs() in phy_CalculateBitShift()
authorMichael Straube <straube.linux@gmail.com>
Sat, 6 Aug 2022 06:09:27 +0000 (08:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2022 13:16:16 +0000 (15:16 +0200)
commit270e05092e09b22e083b5e2802a73b52a6b813eb
treee38e32723c81c805fb9eb5e3b58a45325ba7ed0a
parentbf86e27416d43942a465051c7e2040462bdc734b
staging: r8188eu: use ffs() in phy_CalculateBitShift()

Use ffs() in phy_CalculateBitShift() to simplify the function and
improve readability.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220806060929.11022-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_phycfg.c