From f2473d0efe55c765ce195218e319585b0d10a064 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 9 Oct 2001 14:42:58 +0000 Subject: [PATCH] o remove spurious log message --- lib/format1/import-export.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c index 3e9230880..acf3f42d2 100644 --- a/lib/format1/import-export.c +++ b/lib/format1/import-export.c @@ -31,18 +31,16 @@ static struct logical_volume *_find_lv(struct volume_group *vg, struct list_head *tmp; struct logical_volume *lv; struct lv_list *ll; - const char *ptr; + const char *ptr = strrchr(name, '/') + 1; list_for_each(tmp, &vg->lvs) { ll = list_entry(tmp, struct lv_list, list); lv = &ll->lv; - ptr = strrchr(name, '/') + 1; if (!strcmp(ptr, lv->name)) return lv; } - log_info("couldn't find lv with name '%s'", name); return NULL; } @@ -512,4 +510,3 @@ int export_uuids(struct disk_list *dl, struct volume_group *vg) } return 1; } - -- 2.43.5