linux/drivers/staging/rtl8192u
Colin Ian King c4283950a9 staging: rtl8192u: fix a dubious looking mask before a shift
Currently the masking of ret with 0xff and followed by a right shift
of 8 bits always leaves a zero result.  It appears the mask of 0xff
is incorrect and should be 0xff00, but I don't have the hardware to
test this. Fix this to mask the upper 8 bits before shifting.

[ Not tested ]

Addresses-Coverity: ("Operands don't affect result")
Fixes: 8fc8598e61 ("Staging: Added Realtek rtl8192u driver to staging")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200716154720.1710252-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-17 12:08:44 +02:00
..
ieee80211 staging: rtl8192u: remove GPL boiler plate text 2020-07-10 13:52:45 +02:00
authors
changes
Kconfig staging: rtl8192u: ieee80211: ieee80211_crypt_ccmp.c: Use crypto API ccm(aes) 2019-08-18 08:51:11 +02:00
Makefile staging: rtl8192u: remove unneeded compiler flags 2020-01-10 13:28:15 +01:00
r819xU_cmdpkt.c staging: rtl8192u: fix indentation issue 2019-11-15 14:11:23 +08:00
r819xU_cmdpkt.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c staging: rtl8192u: Fix indentation 2019-08-28 22:22:13 +02:00
r819xU_firmware.h
r819xU_phy.c staging: rtl8192u: Add space to fix style issue 2020-02-09 16:23:02 -08:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c staging: rtl8192u: Add space around binary operators 2019-08-25 10:27:39 +02:00
r8180_93cx6.h
r8190_rtl8256.c staging: rtl8192u: Fix indentation for cleaner code 2019-10-07 12:25:47 +02:00
r8190_rtl8256.h
r8192U_core.c staging: rtl8192u: fix a dubious looking mask before a shift 2020-07-17 12:08:44 +02:00
r8192U_dm.c staging: rtl8192u: Using comparison to true is error prone 2020-07-10 13:52:46 +02:00
r8192U_dm.h staging: rtl8192u: Remove function dm_backup_dynamic_mechanism_state() 2019-07-01 09:11:23 +02:00
r8192U_hw.h staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192U_wx.c staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk() 2020-03-18 11:12:49 +01:00
r8192U_wx.h staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192U.h staging: rtl8192u: rename struct name _rt_firmare_seg_container 2018-11-07 12:35:10 +01:00