]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Remove useless codes of cmdVolPath
authorOsier Yang <jyang@redhat.com>
Tue, 20 Sep 2011 08:33:30 +0000 (16:33 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 21 Sep 2011 01:21:58 +0000 (09:21 +0800)
Variable "name" is never used in the codes, it's useless.

tools/virsh.c

index e8258c14888867c698fde8230bdfe4b655fc063f..371346a825237cb7df65d058c83e462f305255ef 100644 (file)
@@ -10006,13 +10006,12 @@ static bool
 cmdVolPath(vshControl *ctl, const vshCmd *cmd)
 {
     virStorageVolPtr vol;
-    const char *name = NULL;
     char * StorageVolPath;
 
     if (!vshConnectionUsability(ctl, ctl->conn))
         return false;
 
-    if (!(vol = vshCommandOptVol(ctl, cmd, "vol", "pool", &name))) {
+    if (!(vol = vshCommandOptVol(ctl, cmd, "vol", "pool", NULL))) {
         return false;
     }