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/toollib.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/toollib.c')
-rw-r--r-- | tools/toollib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index 7e35f6f22..357c9f8b8 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -3172,7 +3172,7 @@ int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg, log_set_report_object_name_and_id(NULL, NULL); if (handle->include_historical_lvs && !tags_supplied) { - if (!dm_list_size(&_historical_lv.segments)) + if (dm_list_empty(&_historical_lv.segments)) dm_list_add(&_historical_lv.segments, &_historical_lv_segment.list); _historical_lv.vg = vg; |