* [PATCH] [trivial] scripts: Fix comment and message typo in checkpatch.pl
@ 2014-01-12 17:23 Masanari Iida
2014-01-12 18:04 ` Joe Perches
0 siblings, 1 reply; 2+ messages in thread
From: Masanari Iida @ 2014-01-12 17:23 UTC (permalink / raw)
To: trivial, linux-kernel; +Cc: Masanari Iida
This patch corrected a spelling typo in comment
and messages in checkpatch.pl.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
scripts/checkpatch.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e530d90..76ef5a6 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -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);
}
}
--
1.8.5.2.309.ga25014b
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] [trivial] scripts: Fix comment and message typo in checkpatch.pl
2014-01-12 17:23 [PATCH] [trivial] scripts: Fix comment and message typo in checkpatch.pl Masanari Iida
@ 2014-01-12 18:04 ` Joe Perches
0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2014-01-12 18:04 UTC (permalink / raw)
To: Masanari Iida, Andrew Morton; +Cc: trivial, linux-kernel
On Mon, 2014-01-13 at 02:23 +0900, Masanari Iida wrote:
> This patch corrected a spelling typo in comment
> and messages in checkpatch.pl.
[]
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> @@ -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);
> }
> }
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-12 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-12 17:23 [PATCH] [trivial] scripts: Fix comment and message typo in checkpatch.pl Masanari Iida
2014-01-12 18:04 ` Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®