checkpatch: improve return negative errno check
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:19 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:57 +0000 (09:03 -0400)
commitf34e4a4f979c0d39f741bc809127fcf2167a7389
tree5b6c1eaa617df0d50841d58ef2ee38fc3c22144d
parentb392c64f59d7b088aefb4e86d208cd6d3b93eefb
checkpatch: improve return negative errno check

Add a few conditions to the test to find
return (ERRNO);

Make the output message a bit less cryptic too.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl