mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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:
parent
8054576dca
commit
8b1b33786b
@ -1793,7 +1793,7 @@ sub process {
|
||||
$c = 'C' if ($elements[$n + 2] =~ /^$;/);
|
||||
$c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/);
|
||||
$c = 'O' if ($elements[$n + 2] eq '');
|
||||
$c = 'E' if ($elements[$n + 2] =~ /\s*\\$/);
|
||||
$c = 'E' if ($elements[$n + 2] =~ /^\s*\\$/);
|
||||
} else {
|
||||
$c = 'E';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user