OSDN Git Service

staging: rtl8192e: Remove priv->rf_chip in _rtl92e_set_rf_power_state
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 25 Mar 2023 08:36:43 +0000 (09:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Mar 2023 08:52:10 +0000 (09:52 +0100)
commitec69d872eb6fccc0e271f2d7ca283796c215a776
tree562cf376ee7fe70d1b7aa13d05067af2f763ba65
parent5d020fd58cb132c197079ab7bc1459d1e8cdfde3
staging: rtl8192e: Remove priv->rf_chip in _rtl92e_set_rf_power_state

priv->rf_chip is initialized to RF_8256 and never changed. Remove
conditions in function _rtl92e_set_rf_power_state as those are dead
code. Removed unnecessary blank lines to shorten code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/a83b95c68697e6eade68bfd0bf8e22a1340c1457.1679732276.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c