Skip to contentSkip to conversation

scripts: Fix comment and message typo in checkpatch.pl

PATCH In review Masanari Iida 2 participants 2 messages Jan 12, 2014 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: Fix comment and message typo in checkpatch.pl

This patch corrected a spelling typo in comment
and messages in checkpatch.pl.

---
 scripts/checkpatch.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +2 -2
index e530d90..76ef5a6 100755
@@ -4218,7 +4218,7 @@ sub process {
 			}
 		}
 
-# check for case / default statements not preceeded by break/fallthrough/switch
+# check for case / default statements not preceded by break/fallthrough/switch
 		if ($line =~ /^.\s*(?:case\s+(?:$Ident|$Constant)\s*|default):/) {
 			my $has_break = 0;
 			my $has_statement = 0;
@@ -4239,7 +4239,7 @@ sub process {
 			}
 			if (!$has_break && $has_statement) {
 				WARN("MISSING_BREAK",
-				     "Possible switch case/default not preceeded by break or fallthrough comment\n" . $herecurr);
+				     "Possible switch case/default not preceded by break or fallthrough comment\n" . $herecurr);
 			}
 		}
 
Signature · 1 line
1.8.5.2.309.ga25014b
maintainer
#1 lore raw
Quoted 2 lines · Masanari Iida

This patch corrected a spelling typo in comment
and messages in checkpatch.pl.

[]

scripts/checkpatch.pl

Quoted 1 line
scripts/checkpatch.pl +0 -0

[]

Quoted 10 lines
scripts/checkpatch.pl +1 -1
@@ -4218,7 +4218,7 @@ sub process {
 			}
 		}
 
-# check for case / default statements not preceeded by break/fallthrough/switch
+# check for case / default statements not preceded by break/fallthrough/switch
 		if ($line =~ /^.\s*(?:case\s+(?:$Ident|$Constant)\s*|default):/) {
 			my $has_break = 0;
 			my $has_statement = 0;

scripts/checkpatch.pl sub process { · line 4244

Quoted 7 lines
scripts/checkpatch.pl +1 -1
@@ -4239,7 +4239,7 @@ sub process {
 			}
 			if (!$has_break && $has_statement) {
 				WARN("MISSING_BREAK",
-				     "Possible switch case/default not preceeded by break or fallthrough comment\n" . $herecurr);
+				     "Possible switch case/default not preceded by break or fallthrough comment\n" . $herecurr);
 			}
 		}

Thanks.