Skip to content

Commit

Permalink
checkpatch: type/cast spacing should not check prefix spacing
Browse files Browse the repository at this point in the history
We should not be complaining about the prefix spacing for types and casts.
 We are triggering here because the check for spacing between '*'s is
overly loose.  Tighten this up.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andy Whitcroft authored and torvalds committed Jan 16, 2009
1 parent a275064 commit f9a0b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ sub process {
# Should not end with a space.
$to =~ s/\s+$//;
# '*'s should not have spaces between.
while ($to =~ s/(.)\s\*/$1\*/) {
while ($to =~ s/\*\s+\*/\*\*/) {
}

#print "from<$from> to<$to>\n";
Expand All @@ -1680,7 +1680,7 @@ sub process {
# Should not end with a space.
$to =~ s/\s+$//;
# '*'s should not have spaces between.
while ($to =~ s/(.)\s\*/$1\*/) {
while ($to =~ s/\*\s+\*/\*\*/) {
}
# Modifiers should have spaces.
$to =~ s/(\b$Modifier$)/$1 /;
Expand Down

0 comments on commit f9a0b3d

Please sign in to comment.