aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1e7d2cdd0c20..c6782ac6f130 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1295,7 +1295,11 @@ sub process {
1295 } 1295 }
1296 } 1296 }
1297 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g && 1297 if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g &&
1298 $line !~ /\G(?:\s*{)?(?:\s*$;*)(?:\s*\\)?\s*$/g) { 1298 $line !~ /\G(?:
1299 (?:\s*{)?(?:\s*$;*)(?:\s*\\)?\s*$|
1300 \s*return\s+
1301 )/xg)
1302 {
1299 ERROR("trailing statements should be on next line\n" . $herecurr); 1303 ERROR("trailing statements should be on next line\n" . $herecurr);
1300 } 1304 }
1301 1305