aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-08-13 12:23:10 +0100
committerLee Jones <lee.jones@linaro.org>2014-09-26 08:15:28 +0100
commit4001998a43f4791b6e6c06df563f5d5bb3fbe4fb (patch)
tree8442ebcc721a9844d50da6730fa3771a91c3b47c /include/linux
parentiio: sensors-core: st: Check st_sensors_set_drdy_int_pin()'s return value (diff)
downloadlinux-dev-4001998a43f4791b6e6c06df563f5d5bb3fbe4fb.tar.xz
linux-dev-4001998a43f4791b6e6c06df563f5d5bb3fbe4fb.zip
misc: st_core: Protect unsigned value against becoming negative
Coverity reported: This less-than-zero comparison of an unsigned value is never true. In answer to that, we only ever decrement if protos_registered is positive. We can subsequently remove the paranoid checking during unregister. Cc: gregkh@linuxfoundation.org Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions