mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemuDomainNamespaceSetupDisk: Drop useless @src variable
Since its introduction in 81df21507bef9 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)
|
virDomainDiskDefPtr disk)
|
||||||
{
|
{
|
||||||
virStorageSourcePtr next;
|
virStorageSourcePtr next;
|
||||||
const char *src = NULL;
|
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
@ -7914,14 +7913,14 @@ qemuDomainNamespaceSetupDisk(virQEMUDriverPtr driver,
|
|||||||
|
|
||||||
if (stat(next->path, &sb) < 0) {
|
if (stat(next->path, &sb) < 0) {
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("Unable to access %s"), src);
|
_("Unable to access %s"), next->path);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!S_ISBLK(sb.st_mode)) {
|
if (!S_ISBLK(sb.st_mode)) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Disk source %s must be a block device"),
|
_("Disk source %s must be a block device"),
|
||||||
src);
|
next->path);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user