diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-10-01 14:30:49 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-10-06 15:43:31 +0200 |
commit | 3cf97a737bb5eb4cd456b894b1e675291f459129 (patch) | |
tree | 2c9d21bccab992d99d040dcf2bd4cf05fae39558 /tools/reporter.c | |
parent | 197f6aaad71b6da801ba02b53c65f99b98a15991 (diff) | |
download | lvm2-3cf97a737bb5eb4cd456b894b1e675291f459129.tar.gz |
cleanup: use dm_list_empty
Instant check for 'dm_list_size() == 0' without any size calc.
Diffstat (limited to 'tools/reporter.c')
-rw-r--r-- | tools/reporter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/reporter.c b/tools/reporter.c index 54a538d04..eafba4fec 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -1203,7 +1203,7 @@ static int _full_report_single(struct cmd_context *cmd, int orphan = is_orphan_vg(vg->name); int r = ECMD_FAILED; - if (orphan && !dm_list_size(&vg->pvs)) + if (orphan && dm_list_empty(&vg->pvs)) return ECMD_PROCESSED; args->full_report_vg = vg; |