staging: rtl8723bs: simplify function selecting channel group
authorFabio Aiuto <fabioaiuto83@gmail.com>
Wed, 21 Jul 2021 13:37:08 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jul 2021 11:09:44 +0000 (13:09 +0200)
commit2d4c39b32361a7044eed1906e9a6d42ac1ebfabc
tree90ced0d97668f65d0b58ef3ae41e2fe0e15b0c4e
parent9bd9e0de1cf5b89c4854be505ac0a418ddcc01bf
staging: rtl8723bs: simplify function selecting channel group

simplify function Hal_GetChnlGroup8723B(). It returns
an unused and unnecessary bool value telling which
band the device works on. Since we work only on
2.4Ghz band and the useful return value is the
second function argument we convert the return type to
void.

remove 5Ghz dead code either (for channel > 14).

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/a5536788004c44fe819c0eab0d19504824af46cd.1626874164.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c