mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
virsh: Remove useless codes of cmdVolPath
Variable "name" is never used in the codes, it's useless.
This commit is contained in:
parent
ad4036c34a
commit
08c4de5984
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user