]> sourceware.org Git - lvm2.git/commitdiff
lvmetad: drop unused vars
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 29 Apr 2015 13:00:33 +0000 (15:00 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 29 Apr 2015 13:09:58 +0000 (15:09 +0200)
Squash some unused vars introduced in some previous commit.s

daemons/lvmetad/lvmetad-core.c

index e3394ab4c5565dc9dd18cdb9d76c7fc8e5d036c9..398ef38be40824592472513dd28183f16eed9783 100644 (file)
@@ -809,8 +809,7 @@ static response pv_gone(lvmetad_state *s, request r)
        int64_t device = daemon_request_int(r, "device", 0);
        int64_t alt_device = 0;
        struct dm_config_tree *pvmeta;
-       struct dm_config_node *pvmeta_tmp;
-       char *pvid_old, *vgid;
+       char *vgid;
 
        DEBUGLOG(s, "pv_gone: %s / %" PRIu64, pvid, device);
 
@@ -825,7 +824,6 @@ static response pv_gone(lvmetad_state *s, request r)
        DEBUGLOG(s, "pv_gone (updated): %s / %" PRIu64, pvid, device);
 
        pvmeta = dm_hash_lookup(s->pvid_to_pvmeta, pvid);
-       pvid_old = dm_hash_lookup_binary(s->device_to_pvid, &device, sizeof(device));
        vgid = dm_hash_lookup(s->pvid_to_vgid, pvid);
 
        dm_hash_remove_binary(s->device_to_pvid, &device, sizeof(device));
This page took 0.038752 seconds and 5 git commands to generate.