mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
build: remove some dead assignments
No syntactic effect; this merely silences some clang warnings. * src/libxl/libxl_driver.c (libxlDomainSetVcpusFlags): Drop redundant ret=0 statement. * src/qemu/qemu_monitor_text.c (qemuMonitorTextDriveDel): Likewise.
This commit is contained in:
parent
70ea7decbe
commit
4c6ae9ae36
@ -1703,7 +1703,6 @@ libxlDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
|
|||||||
def->maxvcpus = nvcpus;
|
def->maxvcpus = nvcpus;
|
||||||
if (nvcpus < def->vcpus)
|
if (nvcpus < def->vcpus)
|
||||||
def->vcpus = nvcpus;
|
def->vcpus = nvcpus;
|
||||||
ret = 0;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_VCPU_CONFIG:
|
case VIR_DOMAIN_VCPU_CONFIG:
|
||||||
|
@ -2396,7 +2396,6 @@ int qemuMonitorTextDriveDel(qemuMonitorPtr mon,
|
|||||||
} else if (STRPREFIX(reply, "Device '") && (strstr(reply, "not found"))) {
|
} else if (STRPREFIX(reply, "Device '") && (strstr(reply, "not found"))) {
|
||||||
/* NB: device not found errors mean the drive was auto-deleted and we
|
/* NB: device not found errors mean the drive was auto-deleted and we
|
||||||
* ignore the error */
|
* ignore the error */
|
||||||
ret = 0;
|
|
||||||
} else if (STRNEQ(reply, "")) {
|
} else if (STRNEQ(reply, "")) {
|
||||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
||||||
_("deleting %s drive failed: %s"), drivestr, reply);
|
_("deleting %s drive failed: %s"), drivestr, reply);
|
||||||
|
Loading…
Reference in New Issue
Block a user