2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

checkpatch: Fix signoff error

When no 'Signed-off-by' tags are found, the output will look like:

    E: No signatures found.
    E: Too many signoffs; are you missing Co-authored-by lines?
    Warnings: 0, Errors: 2

However, there should really only be one error reported in this case.

Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Aaron Conole
2016-10-21 14:49:07 -04:00
committed by Ben Pfaff
parent 4d7f5e5136
commit 83f76d4ef1

View File

@@ -188,7 +188,7 @@ def ovs_checkpatch_parse(text):
if not skip_signoff_check:
if len(signatures) == 0:
print_error("No signatures found.")
if len(signatures) != 1 + len(co_authors):
elif len(signatures) != 1 + len(co_authors):
print_error("Too many signoffs; "
"are you missing Co-authored-by lines?")
if not set(co_authors) <= set(signatures):