mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
qemu_monitor: Make domainMemoryDeviceSizeChange cb return void
Nobody's interested in the return value of any of struct _qemuMonitorCallbacks callbacks. They are all void, but domainMemoryDeviceSizeChange. Change it to void. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
5198c2542a
commit
14c60c3ae7
@ -413,7 +413,7 @@ typedef void (*qemuMonitorDomainMemoryFailureCallback)(qemuMonitor *mon,
|
||||
qemuMonitorEventMemoryFailure *mfp,
|
||||
void *opaque);
|
||||
|
||||
typedef int (*qemuMonitorDomainMemoryDeviceSizeChange)(qemuMonitor *mon,
|
||||
typedef void (*qemuMonitorDomainMemoryDeviceSizeChange)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *alias,
|
||||
unsigned long long size,
|
||||
|
@ -1845,7 +1845,7 @@ qemuProcessHandleMemoryFailure(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleMemoryDeviceSizeChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
@ -1855,7 +1855,6 @@ qemuProcessHandleMemoryDeviceSizeChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virQEMUDriver *driver = opaque;
|
||||
struct qemuProcessEvent *processEvent = NULL;
|
||||
qemuMonitorMemoryDeviceSizeChange *info = NULL;
|
||||
int ret = -1;
|
||||
|
||||
virObjectLock(vm);
|
||||
|
||||
@ -1878,11 +1877,9 @@ qemuProcessHandleMemoryDeviceSizeChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
}
|
||||
|
||||
processEvent = NULL;
|
||||
ret = 0;
|
||||
cleanup:
|
||||
qemuProcessEventFree(processEvent);
|
||||
virObjectUnlock(vm);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user