linux/drivers/staging/rts5208
Colin Ian King 34ff1bf492 staging/rts5208: fix incorrect shift to extract upper nybble
The mask of sns_key_info1 suggests the upper nybble is being extracted
however the following shift of 8 bits is too large and always results in
0.  Fix this by shifting only by 4 bits to correctly get the upper nybble.

Detected by CoverityScan, CID#142891 ("Operands don't affect result")

Fixes: fa590c222f ("staging: rts5208: add support for rts5208 and rts5288")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-20 11:08:41 -07:00
..
general.c
general.h
Kconfig
Makefile
ms.c staging: rts5208: Change fixed function names with "%s: ", __func__ 2017-07-30 08:29:31 -07:00
ms.h staging: rts5208: ms.h: Parenthesis alignment 2016-10-16 10:27:10 +02:00
rtsx_card.c staging: rts5208: Comparison to NULL 2016-10-16 10:27:02 +02:00
rtsx_card.h staging: rts5208: Unecessary parantheses 2016-10-16 10:26:58 +02:00
rtsx_chip.c staging: rts5208: Change fixed function names with "%s: ", __func__ 2017-07-30 08:29:31 -07:00
rtsx_chip.h staging: rts5208: rtxs_chip.h: Long lines 2016-10-16 10:27:18 +02:00
rtsx_scsi.c staging/rts5208: fix incorrect shift to extract upper nybble 2017-08-20 11:08:41 -07:00
rtsx_scsi.h staging: rts5208: Alignment fix 2016-10-16 10:26:46 +02:00
rtsx_sys.h staging: rts5208: Unnecessary parentheses cleanup 2016-10-16 10:26:45 +02:00
rtsx_transport.c staging: rts5208: Remove unnecessary cast on void pointer 2017-03-09 18:50:05 +01:00
rtsx_transport.h staging: rts5208: Alignment fixes 2016-10-16 10:26:44 +02:00
rtsx.c staging: rts5208: Change fixed function names with "%s: ", __func__ 2017-07-30 08:29:31 -07:00
rtsx.h staging: rts5208: Add space around operator 2016-10-16 10:26:53 +02:00
sd.c staging: rts5208: Change fixed function names with "%s: ", __func__ 2017-07-30 08:29:31 -07:00
sd.h staging: rts5208: sd.h: Alignment fixes 2016-10-16 10:26:36 +02:00
spi.c staging: rts5208: Change fixed function names with "%s: ", __func__ 2017-07-30 08:29:31 -07:00
spi.h Staging: rts5208: fix double blank line coding style issues 2016-08-21 18:37:36 +02:00
TODO
trace.c
trace.h
xd.c staging: rts5208: Change fixed function names with "%s: ", __func__ 2017-07-30 08:29:31 -07:00
xd.h staging: rts5208: xd.h: Alignment fix 2016-10-16 10:25:01 +02:00