Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] [trivial] scripts: Fix comment and message typo in checkpatch.pl

8 views
Skip to first unread message

Masanari Iida

unread,
Jan 12, 2014, 12:30:02 PM1/12/14
to
This patch corrected a spelling typo in comment
and messages in checkpatch.pl.

Signed-off-by: Masanari Iida <stand...@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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Joe Perches

unread,
Jan 12, 2014, 1:10:02 PM1/12/14
to
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.
0 new messages