]> xenbits.xensource.com Git - libvirt.git/commit
conf,qemu: Check for NULL addrs in virDomainUSBAddressEnsure
authorJohn Ferlan <jferlan@redhat.com>
Fri, 20 Oct 2017 11:28:21 +0000 (07:28 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 22 Feb 2018 13:13:16 +0000 (08:13 -0500)
commitc6d483cdc5dce84497d7d0c2da0c6a1ef861b0f6
tree6d83a97ba9fb28c1cf78b18276be5c8f11051808
parent207cece6a3944bfb680751faa84c34da946b1164
conf,qemu: Check for NULL addrs in virDomainUSBAddressEnsure

Rather than having the caller check, if the input @addrs is NULL
(e.g. priv->usbaddrs), then just return 0. This also removes the
need for ATTRIBUTE_NONNULL which only really helped if someone
passed a NULL as a parameter not if the passed parameter is NULL.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_addr.c
src/conf/domain_addr.h
src/qemu/qemu_hotplug.c