qemu-patch-raspberry4/hw/usb
Luiz Capitulino 8be7e7e4c7 qemu-option: qemu_opts_create(): use error_set()
This commit converts qemu_opts_create() from qerror_report() to
error_set().

Currently, most calls to qemu_opts_create() can't fail, so most
callers don't need any changes.

The two cases where code checks for qemu_opts_create() erros are:

 1. Initialization code in vl.c. All of them print their own
    error messages directly to stderr, no need to pass the Error
    object

 2. The functions opts_parse(), qemu_opts_from_qdict() and
    qemu_chr_parse_compat() make use of the error information and
    they can be called from HMP or QMP. In this case, to allow for
    incremental conversion, we propagate the error up using
    qerror_report_err(), which keeps the QError semantics

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-By: Laszlo Ersek <lersek@redhat.com>
2012-06-04 13:49:34 -03:00
..
bus.c usb/vmstate: add parent dev path 2012-04-17 10:23:21 +02:00
core.c usb-ehci: add missing usb_packet_init() call 2012-04-26 12:21:15 +02:00
desc.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
desc.h usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-audio.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-bluetooth.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-hid.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-hub.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-network.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-serial.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-smartcard-reader.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-storage.c qemu-option: qemu_opts_create(): use error_set() 2012-06-04 13:49:34 -03:00
dev-wacom.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
hcd-ehci.c fix some common typos 2012-05-14 07:27:24 +02:00
hcd-musb.c usb: the big rename 2012-03-13 10:15:32 +01:00
hcd-ohci.c usb-ohci: DMA writeback bug fixes 2012-03-13 10:15:32 +01:00
hcd-uhci.c usb-uhci: update irq line on reset 2012-04-26 12:21:17 +02:00
hcd-xhci.c usb-xhci: fix bit test 2012-04-26 12:21:16 +02:00
host-bsd.c usb: the big rename 2012-03-13 10:15:32 +01:00
host-linux.c usb-host: handle guest-issued clear halt 2012-05-14 10:22:20 +02:00
host-stub.c usb: the big rename 2012-03-13 10:15:32 +01:00
libhw.c usb: the big rename 2012-03-13 10:15:32 +01:00
redirect.c usb-redir: Not finding an async urb id is not an error 2012-04-26 12:21:17 +02:00