]> sourceware.org Git - lvm2.git/commitdiff
Remove unused 'origin' variable in lv_remove_single function.
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 5 Aug 2011 09:21:13 +0000 (09:21 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 5 Aug 2011 09:21:13 +0000 (09:21 +0000)
lib/metadata/lv_manip.c

index 0355b1f7a3b0cbb329386d82a892ed0b4150b3e2..e540c8256e1220fad6f60d0ea74d0b69aaac0813 100644 (file)
@@ -2923,7 +2923,6 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
 {
        struct volume_group *vg;
        struct lvinfo info;
-       struct logical_volume *origin = NULL;
 
        vg = lv->vg;
 
@@ -2983,7 +2982,6 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
                return 0;
 
        if (lv_is_cow(lv)) {
-               origin = origin_from_cow(lv);
                log_verbose("Removing snapshot %s", lv->name);
                /* vg_remove_snapshot() will preload origin/former snapshots */
                if (!vg_remove_snapshot(lv))
This page took 0.045601 seconds and 5 git commands to generate.