]> sourceware.org Git - lvm2.git/commitdiff
cleanup: move declaration to the front
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Nov 2013 12:43:25 +0000 (13:43 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 28 Nov 2013 11:48:01 +0000 (12:48 +0100)
daemons/lvmetad/lvmetad-core.c

index 87374e823dfb201352f0c6faeaf2a2629a9087f1..7e64d9d0217f8eb917d987139afc0b5d0bb0d8c3 100644 (file)
@@ -791,7 +791,7 @@ static response pv_gone(lvmetad_state *s, request r)
        const char *pvid = daemon_request_str(r, "uuid", NULL);
        int64_t device = daemon_request_int(r, "device", 0);
        struct dm_config_tree *pvmeta;
-       char *pvid_old;
+       char *pvid_old, *vgid;
 
        DEBUGLOG(s, "pv_gone: %s / %" PRIu64, pvid, device);
 
@@ -807,7 +807,7 @@ static response pv_gone(lvmetad_state *s, request r)
 
        pvmeta = dm_hash_lookup(s->pvid_to_pvmeta, pvid);
        pvid_old = dm_hash_lookup_binary(s->device_to_pvid, &device, sizeof(device));
-       char *vgid = dm_hash_lookup(s->pvid_to_vgid, pvid);
+       vgid = dm_hash_lookup(s->pvid_to_vgid, pvid);
 
        if (vgid && !(vgid = dm_strdup(vgid))) {
                unlock_pvid_to_pvmeta(s);
This page took 0.042267 seconds and 5 git commands to generate.