aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/netduino2.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/arm/netduino2.c')
-rw-r--r--hw/arm/netduino2.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/arm/netduino2.c b/hw/arm/netduino2.c
index 86065d360a..49da6e360d 100644
--- a/hw/arm/netduino2.c
+++ b/hw/arm/netduino2.c
@@ -30,18 +30,13 @@
static void netduino2_init(MachineState *machine)
{
DeviceState *dev;
- Error *err = NULL;
dev = qdev_create(NULL, TYPE_STM32F205_SOC);
if (machine->kernel_filename) {
qdev_prop_set_string(dev, "kernel-filename", machine->kernel_filename);
}
qdev_prop_set_string(dev, "cpu-model", "cortex-m3");
- object_property_set_bool(OBJECT(dev), true, "realized", &err);
- if (err != NULL) {
- error_report_err(err);
- exit(1);
- }
+ object_property_set_bool(OBJECT(dev), true, "realized", &error_fatal);
}
static void netduino2_machine_init(MachineClass *mc)