diff options
author | Philipp Hortmann <philipp.g.hortmann@gmail.com> | 2023-03-25 11:37:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-25 11:52:10 +0300 |
commit | 1d907c886f1c955fe805563bd6b08c733d903eb8 (patch) | |
tree | a4d6ba6d25b4abe6d6dfc4ffaf0f372e4446c8a5 /drivers/staging/rtl8192e | |
parent | 25e99c453b6d4797be3606d4debeabc9e7f28ef9 (diff) | |
download | linux-1d907c886f1c955fe805563bd6b08c733d903eb8.tar.xz |
staging: rtl8192e: Remove priv->rf_chip in _rtl92e_get_channel_map
priv->rf_chip is initialized to RF_8256 and never changed. Remove
condition in function _rtl92e_get_channel_map as it is dead code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/b8c5a719c6f8930adb87a4ad9bd5d368ba5f348b.1679732276.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 8e4e939d7617..ecc3f0c6c267 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -895,13 +895,6 @@ static short _rtl92e_get_channel_map(struct net_device *dev) struct r8192_priv *priv = rtllib_priv(dev); - if ((priv->rf_chip != RF_8225) && (priv->rf_chip != RF_8256) && - (priv->rf_chip != RF_6052)) { - netdev_err(dev, "%s: unknown rf chip, can't set channel map\n", - __func__); - return -1; - } - if (priv->chnl_plan >= COUNTRY_CODE_MAX) { netdev_info(dev, "rtl819x_init:Error channel plan! Set to default.\n"); |