git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ae39cc
)
misc: st_core: Protect unsigned value against becoming negative
author
Lee Jones
<lee.jones@linaro.org>
Thu, 28 Aug 2014 13:14:08 +0000
(14:14 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:14:28 +0000
(23:14 -0700)
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.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
No differences found