mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
checkpatch: convert some of the warnings
These coding issues are not just things that shouldn't be done. They are styles which should never be submitted. Signed-off-by: Aaron Conole <aconole@bytheb.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -219,14 +219,13 @@ def ovs_checkpatch_parse(text):
|
|||||||
lineno)
|
lineno)
|
||||||
if not if_and_for_whitespace_checks(line[1:]):
|
if not if_and_for_whitespace_checks(line[1:]):
|
||||||
print_line = True
|
print_line = True
|
||||||
print_warning("Improper whitespace around control block",
|
print_error("Improper whitespace around control block",
|
||||||
lineno)
|
lineno)
|
||||||
if not if_and_for_end_with_bracket_check(line[1:]):
|
if not if_and_for_end_with_bracket_check(line[1:]):
|
||||||
print_line = True
|
print_line = True
|
||||||
print_warning("Inappropriate bracing around statement",
|
print_error("Inappropriate bracing around statement", lineno)
|
||||||
lineno)
|
|
||||||
if print_line:
|
if print_line:
|
||||||
print(line)
|
print("\n%s\n" % line)
|
||||||
if __errors or __warnings:
|
if __errors or __warnings:
|
||||||
return -1
|
return -1
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user