summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3555120a43..43098ca2e6 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -313,10 +313,9 @@ sub main {
}
# Exit code based on results
+ # Warnings alone do not cause a non-zero exit
if ($g_error_count > 0) {
exit(1);
- } elsif ($g_warn_count > 0) {
- exit(2);
}
exit(0);
}