summaryrefslogtreecommitdiffstats
path: root/tools/toollib.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/toollib.c')
-rw-r--r--tools/toollib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/toollib.c b/tools/toollib.c
index 8214d4a4..652330c1 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -1594,11 +1594,8 @@ static int _pv_change_tag(struct physical_volume *pv, const char *tag, int addta
tag, pv_dev_name(pv));
return 0;
}
- } else if (!str_list_del(&pv->tags, tag)) {
- log_error("Failed to remove tag %s from physical volume" "%s",
- tag, pv_dev_name(pv));
- return 0;
- }
+ } else
+ str_list_del(&pv->tags, tag);
return 1;
}