virsh: Remove useless codes of cmdVolPath

Variable "name" is never used in the codes, it's useless.
This commit is contained in:
Osier Yang 2011-09-20 16:33:30 +08:00
parent ad4036c34a
commit 08c4de5984

View 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;
}