]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
(qemu*DiskCgroup): avoid dead code
authorJim Meyering <meyering@redhat.com>
Mon, 17 May 2010 20:50:21 +0000 (22:50 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 19 May 2010 15:07:08 +0000 (17:07 +0200)
* src/qemu/qemu_driver.c (qemuTeardownDiskCgroup): Remove
bogus empty-body while-loop.
(qemuSetupDiskCgroup): Likewise.

src/qemu/qemu_driver.c

index c103592e22250e2a55de655e7ff3b0a9dc458c01..17d487f5ac68e1792f01b6581574ec845462e553 100644 (file)
@@ -2994,7 +2994,7 @@ static int qemuSetupDiskCgroup(virCgroupPtr cgroup,
             goto cleanup;
 
         path = meta.backingStore;
-    } while (path != NULL);
+    }
 
     ret = 0;
 
@@ -3042,7 +3042,7 @@ static int qemuTeardownDiskCgroup(virCgroupPtr cgroup,
             goto cleanup;
 
         path = meta.backingStore;
-    } while (path != NULL);
+    }
 
     ret = 0;