diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-16 16:47:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-17 12:08:44 +0200 |
commit | c4283950a9a4d3bf4a3f362e406c80ab14f10714 (patch) | |
tree | cf23aad48398a0e8f59165c73801255b13d75f30 /drivers/staging/rtl8712/usb_intf.c | |
parent | Merge tag 'iio-for-5.9a-take2' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next (diff) | |
download | linux-dev-c4283950a9a4d3bf4a3f362e406c80ab14f10714.tar.xz linux-dev-c4283950a9a4d3bf4a3f362e406c80ab14f10714.zip |
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: 8fc8598e61f6 ("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>
Diffstat (limited to 'drivers/staging/rtl8712/usb_intf.c')
0 files changed, 0 insertions, 0 deletions