kvm: qemu: device-assignment: add_assigned_device() returns a pointer
commitf104c3dc3b89628c834c0cf0ff3e49b45d5b3de2
authorMark McLoughlin <markmc@redhat.com>
Fri, 28 Nov 2008 17:10:39 +0000 (28 17:10 +0000)
committerAvi Kivity <avi@redhat.com>
Sun, 30 Nov 2008 10:39:55 +0000 (30 12:39 +0200)
tree7ce95d66902ef5a52894339b19e2acd8c507445d
parentb8ad812e82e2989b070b42bb7c6ce8c910d7f0cf
kvm: qemu: device-assignment: add_assigned_device() returns a pointer

add_assigned_device() returns a pointer, so don't check the return
value is less than zero.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu/hw/ipf.c
qemu/hw/pc.c