Philippe Mathieu-Daudé 2798ee63b0 hw/isa/i82378: Propagate error if PC_SPEAKER device creation failed
In commit 40f8214fcd ("hw/audio/pcspk: Inline pcspk_init()")
we neglected to give a change to the caller to handle failed
device creation cleanly. Respect the caller API contract and
propagate the error if creating the PC_SPEAKER device ever
failed. This avoid yet another bad API use to be taken as
example and copy / pasted all over the code base.

Reported-by: Bernhard Beschow <shentey@gmail.com>
Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231020171509.87839-5-philmd@linaro.org>
2023-11-07 13:08:48 +01:00
..
2023-10-20 08:51:41 +02:00
2023-10-23 14:45:29 -07:00
2023-11-07 09:42:07 +08:00
2023-11-03 10:04:12 +08:00
2023-09-21 11:31:16 +03:00
2023-11-07 09:41:34 +08:00
2023-11-07 09:41:52 +08:00
2023-11-03 10:04:12 +08:00
2023-11-07 09:42:07 +08:00
2023-11-03 10:04:12 +08:00
2023-11-03 09:57:32 +08:00
2023-10-23 14:45:29 -07:00
2023-11-01 16:13:58 +01:00
2023-09-21 11:31:16 +03:00
2023-11-01 16:13:59 +01:00
2023-08-31 19:47:43 +02:00
2023-09-21 11:31:16 +03:00
2023-07-25 17:14:07 +03:00
2023-09-20 07:54:34 +03:00
2023-11-07 09:41:52 +08:00
2023-10-18 10:01:01 +02:00