commit | e4ebe5fe2d507a4c228bf90dea7dd4de57cbce92 | [log] [tgz] |
---|---|---|
author | Lee Jones <lee.jones@linaro.org> | Thu Aug 28 14:14:08 2014 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Sep 23 23:14:28 2014 -0700 |
tree | 60a8202982629355778e58a8fa97b684a131b6c1 | |
parent | 0ae39cc98192252f756f8943be85e9f4dbd8436e [diff] |
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. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>