From: Michael Straube Date: Sat, 25 Mar 2023 13:28:21 +0000 (+0100) Subject: staging: rtl8192e: remove redundant setting of rf_type X-Git-Tag: v6.6.17~5002^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3ed769cc229e7d395f9c772e5db72ded643169d;p=platform%2Fkernel%2Flinux-rpi.git staging: rtl8192e: remove redundant setting of rf_type At this point the value of priv->rf_type is RF_1T2R already. Setting it again is redundant and can be removed. Signed-off-by: Michael Straube Tested-by: Philipp Hortmann Link: https://lore.kernel.org/r/20230325132823.22872-3-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index 3027d43..0e0096e 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -350,10 +350,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev) tempval = (rtl92e_eeprom_read(dev, (EEPROM_RFInd_PowerDiff >> 1))) & 0xff; priv->eeprom_legacy_ht_tx_pwr_diff = tempval & 0xf; - - if (tempval&0x80) - priv->rf_type = RF_1T2R; - } else { priv->eeprom_legacy_ht_tx_pwr_diff = 0x04; }