Commit 3642e50a authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: rtl8192e: Remove case customer_id = RT_CID_DEFAULT, ..

customer_id is initialize to zero. Changing customer_id to RT_CID_DEFAULT
will not change customer_id as it is already zero. default and
EEPROM_CID_WHQL contain only a break. Remove useless code lines to
increase readability.
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/58df9db5da84991206266e739b2a12c893d1be8e.1680427945.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 795916c1
...@@ -432,9 +432,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev) ...@@ -432,9 +432,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
priv->chnl_plan = priv->reg_chnl_plan; priv->chnl_plan = priv->reg_chnl_plan;
switch (priv->eeprom_customer_id) { switch (priv->eeprom_customer_id) {
case EEPROM_CID_DEFAULT:
priv->customer_id = RT_CID_DEFAULT;
break;
case EEPROM_CID_NetCore: case EEPROM_CID_NetCore:
priv->customer_id = RT_CID_819X_NETCORE; priv->customer_id = RT_CID_819X_NETCORE;
break; break;
...@@ -445,11 +442,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev) ...@@ -445,11 +442,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
else else
priv->chnl_plan = 0x0; priv->chnl_plan = 0x0;
break; break;
case EEPROM_CID_WHQL:
break;
default:
break;
} }
if (priv->chnl_plan > CHANNEL_PLAN_LEN - 1) if (priv->chnl_plan > CHANNEL_PLAN_LEN - 1)
......
...@@ -30,10 +30,8 @@ enum baseband_config { ...@@ -30,10 +30,8 @@ enum baseband_config {
#define EEPROM_TxPwIndex_CCK 0x2C #define EEPROM_TxPwIndex_CCK 0x2C
#define EEPROM_TxPwIndex_OFDM_24G 0x3A #define EEPROM_TxPwIndex_OFDM_24G 0x3A
#define EEPROM_CID_DEFAULT 0x0
#define EEPROM_CID_TOSHIBA 0x4 #define EEPROM_CID_TOSHIBA 0x4
#define EEPROM_CID_NetCore 0x5 #define EEPROM_CID_NetCore 0x5
#define EEPROM_CID_WHQL 0xFE
enum _RTL8192PCI_HW { enum _RTL8192PCI_HW {
MAC0 = 0x000, MAC0 = 0x000,
MAC4 = 0x004, MAC4 = 0x004,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment