diff options
author | Solomon Tan <wjsota@gmail.com> | 2022-04-23 21:01:49 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-26 11:35:18 +0200 |
commit | c9c5f7e02b28a0148285d3595a3eb5da9d168094 (patch) | |
tree | 56046b28f2cbb4256a08aeab21b30dc22500e0be /drivers/staging/rtl8192e | |
parent | staging: rtl8192e: Remove unnecessary u16 argument cast (diff) | |
download | linux-dev-c9c5f7e02b28a0148285d3595a3eb5da9d168094.tar.xz linux-dev-c9c5f7e02b28a0148285d3595a3eb5da9d168094.zip |
staging: rtl8192e: Remove u16 cast for u32 parameter
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>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index feddb15bccbe..4b9249195b5a 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -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); |