[libvirt] [PATCH 6/7] qemuDomainEventQueue: Check if event is non-NULL

Peter Krempa pkrempa at redhat.com
Thu Jul 9 07:58:07 UTC 2015


On Wed, Jul 08, 2015 at 19:36:05 +0200, Jiri Denemark wrote:
> Every single call to qemuDomainEventQueue() uses the following pattern:
> 
>     if (event)
>         qemuDomainEventQueue(driver, event);
> 
> Let's move the check for valid event to qemuDomainEventQueue and
> simplify all callers.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/qemu/qemu_blockjob.c  |  6 ++--
>  src/qemu/qemu_cgroup.c    |  3 +-
>  src/qemu/qemu_domain.c    |  6 ++--
>  src/qemu/qemu_driver.c    | 87 ++++++++++++++++-------------------------------
>  src/qemu/qemu_hotplug.c   | 26 ++++++--------
>  src/qemu/qemu_migration.c | 24 +++++--------
>  src/qemu/qemu_process.c   | 72 +++++++++++++--------------------------
>  7 files changed, 78 insertions(+), 146 deletions(-)
> 

Yay \o/, finally this is taken care of.

ACK

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150709/2f41d1e7/attachment-0001.sig>


More information about the libvir-list mailing list