staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rfintfs
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 11 Mar 2023 21:50:44 +0000 (22:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 08:37:00 +0000 (09:37 +0100)
commit3faa16d5217b0abb5fcc1d5e0ea7b78a0d9df003
tree6c1860cff9d6c3005ee57823b63ed148eeed2eef
parenteab1fd002a4f1389496a17fe8b7bcdb510c6afed
staging: rtl8192e: Remove unused RF90_PATH_C and ..D for rfintfs

Remove unused priv->phy_reg_def[RF90_PATH_C].rfintfs and
priv->phy_reg_def[RF90_PATH_D].rfintfs.
The termination condition for the loop is set to
priv->num_total_rf_path = RTL819X_TOTAL_RF_PATH = 2.
Because of this pPhyReg = &priv->phy_reg_def[eRFPath]; pPhyReg cannot
point to array element 2 for RF90_PATH_C and 3 for RF90_PATH_D.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/801d10f460acbf0601c78dee05c7b32f1628f3a8.1678569965.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h