]> xenbits.xensource.com Git - libvirt.git/commit
storage: No need to check ret after VIR_APPEND_ELEMENT
authorJohn Ferlan <jferlan@redhat.com>
Fri, 19 Feb 2016 19:03:16 +0000 (14:03 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 25 Feb 2016 16:52:49 +0000 (11:52 -0500)
commit5430ee3aa69bf143f12830caa87ee59a30ea59b5
treed5b58ad945ab6f0a8cd363539f80a763f287aac1
parent4e87164306f4bead094429ab9e520dfd1b58199f
storage: No need to check ret after VIR_APPEND_ELEMENT

Generates a false positive for Coverity, but it turns out there's no need
to check ret == -1 since if VIR_APPEND_ELEMENT is successful, the local
vol pointer is cleared anyway.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_logical.c
src/storage/storage_backend_zfs.c