diff options
author | Solomon Tan <wjsota@gmail.com> | 2022-04-23 21:01:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-26 11:35:19 +0200 |
commit | a7d1a806718083c8997fcc0320f03376709a4000 (patch) | |
tree | 44f7fa430922f05d147bc299f3c8db8be6e9e869 /drivers/staging/rtl8192e/rtllib_crypt_tkip.c | |
parent | staging: rtl8192e: Remove u16 cast for u32 parameter (diff) | |
download | linux-dev-a7d1a806718083c8997fcc0320f03376709a4000.tar.xz linux-dev-a7d1a806718083c8997fcc0320f03376709a4000.zip |
staging: rtl8192e: Remove u16 cast for u16 return value
Remove explicit u16 cast of the function Mk16 return value.
The variable hi does not need to be casted explicitly to u16 as it will
already be casted implicitly.
Signed-off-by: Solomon Tan <wjsota@gmail.com>
Link: https://lore.kernel.org/r/20220423130150.161903-8-wjsota@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_crypt_tkip.c')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c index a305b79c53e7..8bc95651e384 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c +++ b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c @@ -136,7 +136,7 @@ static inline u16 Hi16(u32 val) static inline u16 Mk16(u8 hi, u8 lo) { - return lo | (((u16)hi) << 8); + return lo | (hi << 8); } |