aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e
diff options
context:
space:
mode:
authorSolomon Tan <wjsota@gmail.com>2022-04-23 21:01:48 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-26 11:35:18 +0200
commitbd0b9adf3583fb99d285b39a7847a7ee4cdadb92 (patch)
tree1fe8c2074ade78606fd1ab4af32307b24cb98485 /drivers/staging/rtl8192e
parentstaging: rtl8192e: Remove unnecessary u16 assignment cast (diff)
downloadlinux-dev-bd0b9adf3583fb99d285b39a7847a7ee4cdadb92.tar.xz
linux-dev-bd0b9adf3583fb99d285b39a7847a7ee4cdadb92.zip
staging: rtl8192e: Remove unnecessary u16 argument cast
Remove the explicit u16 casts for u16 argument in the function call. This function has declared its parameter to be of type u16, so the argument given to that parameter will be automatically coerced to u16. Therefore, an explicit cast is unnecessary. Signed-off-by: Solomon Tan <wjsota@gmail.com> Link: https://lore.kernel.org/r/20220423130150.161903-6-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_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
index b7bdbd895e7b..f92551094738 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
@@ -929,7 +929,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
break;
case CmdID_WritePortUshort:
rtl92e_writew(dev, CurrentCmd->Para1,
- (u16)CurrentCmd->Para2);
+ CurrentCmd->Para2);
break;
case CmdID_WritePortUchar:
rtl92e_writeb(dev, CurrentCmd->Para1,