From: Osier Yang Date: Tue, 20 Sep 2011 08:33:30 +0000 (+0800) Subject: virsh: Remove useless codes of cmdVolPath X-Git-Tag: v0.9.6~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c4de5984d486cc93fffd023f3cc9416d376328;p=thirdparty%2Flibvirt.git virsh: Remove useless codes of cmdVolPath Variable "name" is never used in the codes, it's useless. --- diff --git a/tools/virsh.c b/tools/virsh.c index e8258c1488..371346a825 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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; }