summaryrefslogtreecommitdiff
path: root/hw/s390x
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-02-05 10:34:49 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2015-03-16 10:15:44 +0100
commitae4a2bd759d647dd6146d45e4a59a01cf34d6a4d (patch)
tree4acd746276386df2b6bcd8cada6beb3f96429d1f /hw/s390x
parent7ccfb495c64e1eef5886dcc4d48523ed6d1d22a4 (diff)
downloadqemu-ae4a2bd759d647dd6146d45e4a59a01cf34d6a4d.tar.gz
qemu-ae4a2bd759d647dd6146d45e4a59a01cf34d6a4d.tar.bz2
qemu-ae4a2bd759d647dd6146d45e4a59a01cf34d6a4d.zip
s390x: Replace unchecked qdev_init() by qdev_init_nofail()
s390_flic_init() is a helper to create and realize either "s390-flic-kvm" or "s390-flic-qemu". When qdev_init() fails, it complains to stderr and succeeds. Except it can't actually fail, because the "s390-flic-qemu" is a dummy without a realize method, and "s390-flic-kvm"'s realize can't fail, even when the kernel device is really unavailable. Odd. Replace qdev_init() by qdev_init_nofail() to make "can't fail" locally obvious, and get rid of the unreachable error reporting. Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Cc: Alexander Graf <agraf@suse.de> Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Message-Id: <1423128889-18260-4-git-send-email-armbru@redhat.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x')
0 files changed, 0 insertions, 0 deletions