]> xenbits.xensource.com Git - libvirt.git/commit
conf,qemu: Check for NULL addrs in virDomainUSBAddressRelease
authorJohn Ferlan <jferlan@redhat.com>
Fri, 20 Oct 2017 11:24:49 +0000 (07:24 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 22 Feb 2018 13:12:57 +0000 (08:12 -0500)
commit207cece6a3944bfb680751faa84c34da946b1164
tree40cae8af312e51acf082b2f0ad64964e0a1819ed
parent9c61c2808168d848473ac92c33adc88c4ff8d33c
conf,qemu: Check for NULL addrs in virDomainUSBAddressRelease

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_domain_address.c
src/qemu/qemu_hotplug.c