aspeed: Clean up roundabout error propagation
commit123327d14e8ccca3e94986a9ea48fc61e8c2357d
authorMarkus Armbruster <armbru@redhat.com>
Tue, 30 Jun 2020 09:03:37 +0000 (30 11:03 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 2 Jul 2020 04:25:29 +0000 (2 06:25 +0200)
treeec2db34ba711727899165ff87af979ae0faf7fb2
parentb94b3c02df87dc9cca1b395e836f6d83f3a3001f
aspeed: Clean up roundabout error propagation

Replace

        sysbus_realize(SYS_BUS_DEVICE(&s->spi[i]), &local_err);
        error_propagate(&err, local_err);
        if (err) {
            error_propagate(errp, err);
            return;
}

by

        sysbus_realize(SYS_BUS_DEVICE(&s->spi[i]), &err);
        if (err) {
            error_propagate(errp, err);
            return;
}

Cc: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20200630090351.1247703-13-armbru@redhat.com>
hw/arm/aspeed_ast2600.c
hw/arm/aspeed_soc.c