diff options
| author | Andy Whitcroft <apw@canonical.com> | 2009-01-06 17:41:27 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:17 -0500 |
| commit | 8b1b33786b06a222cf3430b1bf942a3681532104 (patch) | |
| tree | dcacb222ddc7320f67a30c93440a09b5bf2a0c76 /scripts | |
| parent | 8054576dca7e76dd1f58c525af3309cfc9c74454 (diff) | |
checkpatch: fix continuation detection when handling spacing on operators
We are miscategorising a continuation fragment following an operator
which may lead to us thinking that there is a space after it when there is
not. Fix 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>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d80b55a6f89b..67b0c9faa32d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -1793,7 +1793,7 @@ sub process { | |||
| 1793 | $c = 'C' if ($elements[$n + 2] =~ /^$;/); | 1793 | $c = 'C' if ($elements[$n + 2] =~ /^$;/); |
| 1794 | $c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/); | 1794 | $c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/); |
| 1795 | $c = 'O' if ($elements[$n + 2] eq ''); | 1795 | $c = 'O' if ($elements[$n + 2] eq ''); |
| 1796 | $c = 'E' if ($elements[$n + 2] =~ /\s*\\$/); | 1796 | $c = 'E' if ($elements[$n + 2] =~ /^\s*\\$/); |
| 1797 | } else { | 1797 | } else { |
| 1798 | $c = 'E'; | 1798 | $c = 'E'; |
| 1799 | } | 1799 | } |
