mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
Use error_fatal to simplify obvious fatal errors (again)
Done with the Coccinelle semantic patch from commit 007b065
, plus
manual clean up of dead variables.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1452783732-6581-1-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
e4a096b1cd
commit
07d04a0219
5 changed files with 5 additions and 30 deletions
|
@ -65,7 +65,6 @@ static struct arm_boot_info imx25_pdk_binfo;
|
|||
static void imx25_pdk_init(MachineState *machine)
|
||||
{
|
||||
IMX25PDK *s = g_new0(IMX25PDK, 1);
|
||||
Error *err = NULL;
|
||||
unsigned int ram_size;
|
||||
unsigned int alias_offset;
|
||||
int i;
|
||||
|
@ -74,11 +73,7 @@ static void imx25_pdk_init(MachineState *machine)
|
|||
object_property_add_child(OBJECT(machine), "soc", OBJECT(&s->soc),
|
||||
&error_abort);
|
||||
|
||||
object_property_set_bool(OBJECT(&s->soc), true, "realized", &err);
|
||||
if (err != NULL) {
|
||||
error_report_err(err);
|
||||
exit(1);
|
||||
}
|
||||
object_property_set_bool(OBJECT(&s->soc), true, "realized", &error_fatal);
|
||||
|
||||
/* We need to initialize our memory */
|
||||
if (machine->ram_size > (FSL_IMX25_SDRAM0_SIZE + FSL_IMX25_SDRAM1_SIZE)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue