summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ti-ads1015.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-18 14:34:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-09 17:39:37 +0200
commite58b04fb5b0bf2847f28b8e0cd879fabfec1355b (patch)
tree7bb393003b8f1facc6d61511bd6f5b4a1f1ed149 /drivers/iio/adc/ti-ads1015.c
parentafcfe0661a747bf1f447dd9f24be4ad67f1cf018 (diff)
staging/rts5208: fix incorrect shift to extract upper nybble
commit 34ff1bf4920471cff66775dc39537b15c5f0feff upstream. 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: fa590c222fba ("staging: rts5208: add support for rts5208 and rts5288") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc/ti-ads1015.c')
0 files changed, 0 insertions, 0 deletions