WSL2-Linux-Kernel/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
Kconfig
Makefile
authors
changes
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware.c
r819xU_firmware.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c
r8180_93cx6.h
r8190_rtl8256.c
r8190_rtl8256.h
r8192U.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
r8192U_hw.h
r8192U_wx.c
r8192U_wx.h