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>
This commit is contained in:
Andy Whitcroft 2009-01-06 14:41:27 -08:00 committed by Linus Torvalds
parent 8054576dca
commit 8b1b33786b

View File

@ -1793,7 +1793,7 @@ sub process {
$c = 'C' if ($elements[$n + 2] =~ /^$;/); $c = 'C' if ($elements[$n + 2] =~ /^$;/);
$c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/); $c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/);
$c = 'O' if ($elements[$n + 2] eq ''); $c = 'O' if ($elements[$n + 2] eq '');
$c = 'E' if ($elements[$n + 2] =~ /\s*\\$/); $c = 'E' if ($elements[$n + 2] =~ /^\s*\\$/);
} else { } else {
$c = 'E'; $c = 'E';
} }