mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 22:40:53 +07: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 = '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';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user