summaryrefslogtreecommitdiff
path: root/tools/toollib.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-10-01 14:30:49 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-10-06 15:43:31 +0200
commit3cf97a737bb5eb4cd456b894b1e675291f459129 (patch)
tree2c9d21bccab992d99d040dcf2bd4cf05fae39558 /tools/toollib.c
parent197f6aaad71b6da801ba02b53c65f99b98a15991 (diff)
downloadlvm2-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.c2
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;