From: Lee Jones Date: Thu, 28 Aug 2014 13:14:08 +0000 (+0100) Subject: misc: st_core: Protect unsigned value against becoming negative X-Git-Tag: fixes-for-v3.18-merge-window~11^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4ebe5fe2d507a4c228bf90dea7dd4de57cbce92;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed