staging: rtl8192e: remove rf_type from struct r8192_priv
authorMichael Straube <straube.linux@gmail.com>
Sat, 25 Mar 2023 13:28:23 +0000 (14:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Mar 2023 19:21:01 +0000 (20:21 +0100)
commit91de7cdc784f28655eb97de3e66ede0ada94b6eb
tree9f5d98c88c8c222edfbe3774da5e4a167169dea5
parent2fd65482d923ee09a6e133dcc15f988a4a44420b
staging: rtl8192e: remove rf_type from struct r8192_priv

The field rf_type of struct r8192_priv is always RF_1T2R and only used
in one place. Use RF_1T2R directly there and remove rf_type from struct
r8192_priv.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20230325132823.22872-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c