]> sourceware.org Git - lvm2.git/commitdiff
o remove spurious log message
authorJoe Thornber <thornber@redhat.com>
Tue, 9 Oct 2001 14:42:58 +0000 (14:42 +0000)
committerJoe Thornber <thornber@redhat.com>
Tue, 9 Oct 2001 14:42:58 +0000 (14:42 +0000)
lib/format1/import-export.c

index 3e9230880c57ad84926f9be6b7fed69b90460fd2..acf3f42d21d06ddf954542c618cd32d3b23702cb 100644 (file)
@@ -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;
 }
-
This page took 0.033877 seconds and 5 git commands to generate.