diff options
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 59fa00e97878..8efce590d4b6 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -3121,7 +3121,7 @@ sub process { | |||
3121 | } | 3121 | } |
3122 | 3122 | ||
3123 | # check for whitespace before a non-naked semicolon | 3123 | # check for whitespace before a non-naked semicolon |
3124 | if ($line =~ /^\+.*\S\s+;/) { | 3124 | if ($line =~ /^\+.*\S\s+;\s*$/) { |
3125 | if (WARN("SPACING", | 3125 | if (WARN("SPACING", |
3126 | "space prohibited before semicolon\n" . $herecurr) && | 3126 | "space prohibited before semicolon\n" . $herecurr) && |
3127 | $fix) { | 3127 | $fix) { |