]> git.proxmox.com Git - mirror_qemu.git/commit
vfio-ccw: Test vfio_set_irq_signaling() return value
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 2 Jul 2019 19:41:34 +0000 (13:41 -0600)
committerCornelia Huck <cohuck@redhat.com>
Mon, 8 Jul 2019 10:10:37 +0000 (12:10 +0200)
commitf5cf94cdabd349eedc6d0fa69ba51ff4d84c2181
tree32fee430166020fa2d0ce18675da7636ed8b3141
parent3a1acf5d47295d22ffdae0982a2fd808b802a7da
vfio-ccw: Test vfio_set_irq_signaling() return value

Coverity doesn't like that most callers of vfio_set_irq_signaling() check
the return value and doesn't understand the equivalence of testing the
error pointer instead.  Test the return value consistently.

Reported-by: Coverity (CID 1402783)
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Message-Id: <156209642116.14915.9598593247782519613.stgit@gimli.home>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/vfio/ccw.c