misc: st_core: Protect unsigned value against becoming negative
authorLee Jones <lee.jones@linaro.org>
Wed, 13 Aug 2014 11:23:10 +0000 (12:23 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:15:28 +0000 (08:15 +0100)
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>

No differences found