Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5646bc71 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

checkpatch: warn on space before semicolon



Make space before semicolon a warning instead of a --strict CHK test.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 04db4d25
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2522,7 +2522,7 @@ sub process {

# check for whitespace before a non-naked semicolon
		if ($line =~ /^\+.*\S\s+;/) {
			CHK("SPACING",
			WARN("SPACING",
			     "space prohibited before semicolon\n" . $herecurr);
		}