From: Lee Jones Date: Wed, 13 Aug 2014 11:23:10 +0000 (+0100) Subject: misc: st_core: Protect unsigned value against becoming negative X-Git-Tag: fixes-against-v3.18-rc2~69^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4001998a43f4791b6e6c06df563f5d5bb3fbe4fb;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. Cc: gregkh@linuxfoundation.org Signed-off-by: Lee Jones --- Reading git-diff-tree failed