mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu_hotplug: Fix whitespace around addition in argument
This commit is contained in:
parent
50348e6edf
commit
14da45c8e4
@ -814,7 +814,7 @@ int qemuDomainAttachNetDevice(virConnectPtr conn,
|
||||
size_t i;
|
||||
|
||||
/* preallocate new slot for device */
|
||||
if (VIR_REALLOC_N(vm->def->nets, vm->def->nnets+1) < 0)
|
||||
if (VIR_REALLOC_N(vm->def->nets, vm->def->nnets + 1) < 0)
|
||||
goto cleanup;
|
||||
|
||||
/* If appropriate, grab a physical device from the configured
|
||||
@ -1136,7 +1136,7 @@ int qemuDomainAttachHostPciDevice(virQEMUDriverPtr driver,
|
||||
char *configfd_name = NULL;
|
||||
bool releaseaddr = false;
|
||||
|
||||
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0)
|
||||
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs + 1) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuPrepareHostdevPCIDevices(driver, vm->def->name, vm->def->uuid,
|
||||
|
Loading…
Reference in New Issue
Block a user