checkpatch: improve return negative errno check
authorJoe Perches <[email protected]>
Thu, 16 Apr 2015 19:44:19 +0000 (12:44 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl