staging: rtl8192e: Remove u16 cast for u32 parameter
authorSolomon Tan <wjsota@gmail.com>
Sat, 23 Apr 2022 13:01:49 +0000 (21:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 09:35:18 +0000 (11:35 +0200)
The explicit u16 cast is not necessary because rtl92e_eeprom_read's
second parameter is defined to be u32.

Signed-off-by: Solomon Tan <wjsota@gmail.com>
Link: https://lore.kernel.org/r/20220423130150.161903-7-wjsota@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c

index feddb15..4b92491 100644 (file)
@@ -320,7 +320,7 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
                priv->eeprom_did = rtl92e_eeprom_read(dev, EEPROM_DID >> 1);
 
                usValue = rtl92e_eeprom_read(dev,
-                                            (u16)(EEPROM_Customer_ID>>1)) >> 8;
+                                            (EEPROM_Customer_ID >> 1)) >> 8;
                priv->eeprom_CustomerID = usValue & 0xff;
                usValue = rtl92e_eeprom_read(dev,
                                             EEPROM_ICVersion_ChannelPlan>>1);