X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=scripts%2Fcheckpatch.pl;h=66eb68e85a0e28f92c9edd5db64bfe097a00f8bb;hb=1ff7ebf33b67b4ec7ea663827e74fe54ac469618;hp=18e16b79dfc81b503c0d54c2bc88807f38b9e3ea;hpb=98e56ae6798cc5f5e432e8d93d5d18ebdeb7e496;p=mirror_qemu.git diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 18e16b79df..66eb68e85a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2867,19 +2867,19 @@ sub process { # If we have no input at all, then there is nothing to report on # so just keep quiet. if ($#rawlines == -1) { - exit(0); + return 1; } # In mailback mode only produce a report in the negative, for # things that appear to be patches. if ($mailback && ($clean == 1 || !$is_patch)) { - exit(0); + return 1; } # This is not a patch, and we are are in 'no-patch' mode so # just keep quiet. if (!$chk_patch && !$is_patch) { - exit(0); + return 1; } if (!$is_patch) {