mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
checkpatch: Fix mis-flagging of division operators as lacking whitespace.
The regular expression here would flag any slash that wasn't adjacent to an asterisk as missing whitespace. This fixes the problem. Signed-off-by: Ben Pfaff <blp@ovn.org> Tested-by: Aaron Conole <aconole@redhat.com>
This commit is contained in:
@@ -472,7 +472,7 @@ infix_operators = \
|
||||
'&=', '^=', '|=', '<<=', '>>=']] \
|
||||
+ ['[^<" ]<[^=" ]', '[^->" ]>[^=" ]', '[^ !()/"]\*[^/]', '[^ !&()"]&',
|
||||
'[^" +(]\+[^"+;]', '[^" -(]-[^"->;]', '[^" <>=!^|+\-*/%&]=[^"=]',
|
||||
'[^*]/[^*]']
|
||||
'[^* ]/[^* ]']
|
||||
checks += [
|
||||
{'regex': '(\.c|\.h)(\.in)?$', 'match_name': None,
|
||||
'prereq': lambda x: not is_comment_line(x),
|
||||
|
Reference in New Issue
Block a user