diff options
| author | Markus Armbruster <armbru@redhat.com> | 2020-06-10 07:32:18 +0200 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2020-06-15 22:05:28 +0200 |
| commit | 535770518f85e6e8b912c262492a251053491637 (patch) | |
| tree | 2dd70505ef97c9d94383ac886ac05f769b69ce46 /hw/core/qdev.c | |
| parent | 8cd81a9e551265dc63fe80aa83af773709e48552 (diff) | |
| download | focaccia-qemu-535770518f85e6e8b912c262492a251053491637.tar.gz focaccia-qemu-535770518f85e6e8b912c262492a251053491637.zip | |
usb: Eliminate usb_try_create_simple()
usb_try_create_simple() is qdev_try_new() and qdev_realize_and_unref() with more verbose error messages. Of its two users, one ignores errors, and the other asserts they are impossible. Make them use qdev_try_new() and qdev_realize_and_unref() directly, and eliminate usb_try_create_simple Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-30-armbru@redhat.com>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions