Skip to content

Commit 342d3d2

Browse files
borneoatorvalds
authored andcommitted
checkpatch: fix minor typo and mixed space+tab in indentation
Fix spelling of "concatenation". Don't use tab after space in indentation. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Joe Perches <joe@perches.com> Link: http://lkml.kernel.org/r/20200122163852.124417-2-borneo.antonio@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f36d3eb commit 342d3d2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎scripts/checkpatch.pl‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,7 +4615,7 @@ sub process {
46154615
($op eq '>' &&
46164616
$ca =~ /<\S+\@\S+$/))
46174617
{
4618-
$ok = 1;
4618+
$ok = 1;
46194619
}
46204620

46214621
# for asm volatile statements
@@ -4950,7 +4950,7 @@ sub process {
49504950
# conditional.
49514951
substr($s, 0, length($c), '');
49524952
$s =~ s/\n.*//g;
4953-
$s =~ s/$;//g; # Remove any comments
4953+
$s =~ s/$;//g; # Remove any comments
49544954
if (length($c) && $s !~ /^\s*{?\s*\\*\s*$/ &&
49554955
$c !~ /}\s*while\s*/)
49564956
{
@@ -4989,7 +4989,7 @@ sub process {
49894989
# if and else should not have general statements after it
49904990
if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) {
49914991
my $s = $1;
4992-
$s =~ s/$;//g; # Remove any comments
4992+
$s =~ s/$;//g; # Remove any comments
49934993
if ($s !~ /^\s*(?:\sif|(?:{|)\s*\\?\s*$)/) {
49944994
ERROR("TRAILING_STATEMENTS",
49954995
"trailing statements should be on next line\n" . $herecurr);
@@ -5165,7 +5165,7 @@ sub process {
51655165
{
51665166
}
51675167

5168-
# Flatten any obvious string concatentation.
5168+
# Flatten any obvious string concatenation.
51695169
while ($dstat =~ s/($String)\s*$Ident/$1/ ||
51705170
$dstat =~ s/$Ident\s*($String)/$1/)
51715171
{

0 commit comments

Comments
 (0)