mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
staging: rtl8192e: Remove priv->rf_chip in rtl92e_config_phy
priv->rf_chip is initialized to RF_8256 and never changed. Remove condition in function rtl92e_config_phy as it is dead code. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/c0d4e98308c9198776d8d04d1c2910f089f45a90.1679732276.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
846fc62b9c
commit
ade42a46b2
@@ -491,25 +491,10 @@ void rtl92e_set_tx_power(struct net_device *dev, u8 channel)
|
||||
|
||||
bool rtl92e_config_phy(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
bool rtStatus = true;
|
||||
|
||||
switch (priv->rf_chip) {
|
||||
case RF_8225:
|
||||
break;
|
||||
case RF_8256:
|
||||
rtStatus = rtl92e_config_rf(dev);
|
||||
break;
|
||||
rtStatus = rtl92e_config_rf(dev);
|
||||
|
||||
case RF_8258:
|
||||
break;
|
||||
case RF_PSEUDO_11N:
|
||||
break;
|
||||
|
||||
default:
|
||||
netdev_err(dev, "Invalid RF Chip ID.\n");
|
||||
break;
|
||||
}
|
||||
return rtStatus;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user