Commit 910111f
committed
tools: fix checkpatch.pl for 'FOO < BAR && ...'
In the check $to gets value from $LvalOrFunc in regular expression that
ends with '\s*', so in case of check for
if (FOO < BAR && somethingelse)
$to equals 'BAR ' and check that on right side there is also a constant
fails.
Simple fix: add '\s*' to re that checks whether $to is constant.
Signed-off-by: Kyrylo Yatsenko <hedrok@gmail.com>1 parent 6474018 commit 910111f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5542 | 5542 | | |
5543 | 5543 | | |
5544 | 5544 | | |
5545 | | - | |
| 5545 | + | |
5546 | 5546 | | |
5547 | 5547 | | |
5548 | 5548 | | |
| |||
0 commit comments