]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: returning errno typically should be negative
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:14 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:20 +0000 (16:52 -0700)
commit09a23b5fbe726043d7aaef129497afd3a61bee5f
treedfe0b1f85cbf1082ceb52b71bb157cc715e22293
parenta275ae838a40806b1ae79bcc4c5ce5c253084eb6
checkpatch: returning errno typically should be negative

Add a (strict mode only) test to check for non-negative returns of what
appear to be errno values as the majority case these should indeed be
negative.

Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl