unwind: literals higher than zero are not an error code
commit5d42c32cd63da21d4efe9b5d710111b2e96bf49b
authorDan Carpenter <error27@gmail.com>
Tue, 3 Aug 2010 12:38:08 +0000 (3 14:38 +0200)
committerDan Carpenter <error27@gmail.com>
Tue, 3 Aug 2010 12:38:08 +0000 (3 14:38 +0200)
tree3b6acf9ada0e9b0989c023e50cfabece8a9df62a
parent4decace4250da79830e3eefe478456a3ac626c11
unwind: literals higher than zero are not an error code

If a function returns an integer literal that's higher than zero then don't
treat it as an error code.  If it's a variable, that's higher than zero
then we still count it as an error code.

I used >= instead of > because that's faster than waiting until the next
line.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_unwind.c