[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/11] arm/sabrelite: Consistently use &error_fatal in sabrel
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
Re: [PATCH 10/11] arm/sabrelite: Consistently use &error_fatal in sabrelite_init() |
|
Date: |
Mon, 27 Apr 2020 11:17:06 +0200 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 4/24/20 9:20 PM, Markus Armbruster wrote:
> Cc: Peter Maydell <address@hidden>
> Cc: Jean-Christophe Dubois <address@hidden>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> hw/arm/sabrelite.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/hw/arm/sabrelite.c b/hw/arm/sabrelite.c
> index e31694bb92..04f4b96591 100644
> --- a/hw/arm/sabrelite.c
> +++ b/hw/arm/sabrelite.c
> @@ -41,7 +41,6 @@ static void sabrelite_reset_secondary(ARMCPU *cpu,
> static void sabrelite_init(MachineState *machine)
> {
> FslIMX6State *s;
> - Error *err = NULL;
>
> /* Check the amount of memory is compatible with the SOC */
> if (machine->ram_size > FSL_IMX6_MMDC_SIZE) {
> @@ -52,11 +51,7 @@ static void sabrelite_init(MachineState *machine)
>
> s = FSL_IMX6(object_new(TYPE_FSL_IMX6));
> object_property_add_child(OBJECT(machine), "soc", OBJECT(s),
> &error_fatal);
> - object_property_set_bool(OBJECT(s), true, "realized", &err);
> - if (err != NULL) {
> - error_report("%s", error_get_pretty(err));
> - exit(1);
> - }
> + object_property_set_bool(OBJECT(s), true, "realized", &error_fatal);
>
> memory_region_add_subregion(get_system_memory(), FSL_IMX6_MMDC_ADDR,
> machine->ram);
>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
- Re: [PATCH 06/11] error: Use error_reportf_err() where appropriate, (continued)
[PATCH 07/11] mips/malta: Fix create_cps() error handling, Markus Armbruster, 2020/04/24
[PATCH 03/11] s390x/cpumodel: Fix harmless misuse of visit_check_struct(), Markus Armbruster, 2020/04/24
[PATCH 10/11] arm/sabrelite: Consistently use &error_fatal in sabrelite_init(), Markus Armbruster, 2020/04/24
- Re: [PATCH 10/11] arm/sabrelite: Consistently use &error_fatal in sabrelite_init(),
Philippe Mathieu-Daudé <=
[PATCH 01/11] nvdimm: Plug memory leak in uuid property setter, Markus Armbruster, 2020/04/24
[PATCH 08/11] mips/boston: Fix boston_mach_init() error handling, Markus Armbruster, 2020/04/24
[PATCH 11/11] i386: Fix x86_cpu_load_model() error API violation, Markus Armbruster, 2020/04/24
[PATCH 02/11] xen: Fix and improve handling of device_add usb-host errors, Markus Armbruster, 2020/04/24
[PATCH 09/11] mips/boston: Plug memory leak in boston_mach_init(), Markus Armbruster, 2020/04/24