staging: rtl8192e: Remove case customer_id = RT_CID_DLINK
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 2 Apr 2023 09:51:59 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 14:38:23 +0000 (16:38 +0200)
customer_id is initialize to zero. Changing customer_id to RT_CID_DLINK
would not change the program execution as there is no equation for
RT_CID_DLINK. Remove useless code lines to increase readability.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/e4ecef11015c32c9909cd07e0939c4de53fd501a.1680427945.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index 1da14e7..cbe66b4 100644 (file)
@@ -431,9 +431,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
        else
                priv->chnl_plan = priv->reg_chnl_plan;
 
-       if (priv->eeprom_vid == 0x1186 &&  priv->eeprom_did == 0x3304)
-               priv->customer_id =  RT_CID_DLINK;
-
        switch (priv->eeprom_customer_id) {
        case EEPROM_CID_DEFAULT:
                priv->customer_id = RT_CID_DEFAULT;
@@ -460,9 +457,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
        case EEPROM_CID_Pronet:
                priv->customer_id = RT_CID_PRONET;
                break;
-       case EEPROM_CID_DLINK:
-               priv->customer_id = RT_CID_DLINK;
-               break;
 
        case EEPROM_CID_WHQL:
                break;
index 99640c4..706d024 100644 (file)
@@ -37,7 +37,6 @@ enum baseband_config {
 #define EEPROM_CID_NetCore                             0x5
 #define EEPROM_CID_Nettronix                   0x6
 #define EEPROM_CID_Pronet                              0x7
-#define EEPROM_CID_DLINK                               0x8
 #define EEPROM_CID_WHQL                                        0xFE
 enum _RTL8192PCI_HW {
        MAC0                    = 0x000,
index 1e99eb8..91d634f 100644 (file)
@@ -134,7 +134,6 @@ enum rt_customer_id {
        RT_CID_TOSHIBA    = 9,
        RT_CID_819X_NETCORE     = 10,
        RT_CID_Nettronix        = 11,
-       RT_CID_DLINK        = 12,
        RT_CID_PRONET      = 13,
 };