scripts/clean-includes: Don't claim duplicate headers found when not
commit2555150244393a8cf433d6762c265b1e89c70be4
authorMarkus Armbruster <armbru@redhat.com>
Thu, 2 Feb 2023 13:38:12 +0000 (2 14:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 8 Feb 2023 06:16:23 +0000 (8 07:16 +0100)
tree39f4ec24b7d6ce3d44eaa84ab31dfbb4aca703bd
parentaa735872a879075d1e9d669c8d5737f41232a3e3
scripts/clean-includes: Don't claim duplicate headers found when not

When running with --check-dup-head, the script always claims it "Found
duplicate header file includes."  Fix to do it only when it actually
found some.

Fixes: d66253e46ae2 ("scripts/clean-includes: added duplicate #include check")
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20230202133830.2152150-3-armbru@redhat.com>
scripts/clean-includes