mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
qemuDomainNamespaceSetupDisk: Drop useless @src variable
Since its introduction in 81df21507b
this variable was never
used.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8dc867e978
commit
76d491ef14
@ -7899,7 +7899,6 @@ qemuDomainNamespaceSetupDisk(virQEMUDriverPtr driver,
|
||||
virDomainDiskDefPtr disk)
|
||||
{
|
||||
virStorageSourcePtr next;
|
||||
const char *src = NULL;
|
||||
struct stat sb;
|
||||
int ret = -1;
|
||||
|
||||
@ -7914,14 +7913,14 @@ qemuDomainNamespaceSetupDisk(virQEMUDriverPtr driver,
|
||||
|
||||
if (stat(next->path, &sb) < 0) {
|
||||
virReportSystemError(errno,
|
||||
_("Unable to access %s"), src);
|
||||
_("Unable to access %s"), next->path);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!S_ISBLK(sb.st_mode)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Disk source %s must be a block device"),
|
||||
src);
|
||||
next->path);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user