aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/digic_boards.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/arm/digic_boards.c')
-rw-r--r--hw/arm/digic_boards.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c
index b6452d918c..d5524d3e72 100644
--- a/hw/arm/digic_boards.c
+++ b/hw/arm/digic_boards.c
@@ -62,8 +62,7 @@ static void digic4_board_init(MachineState *machine, DigicBoard *board)
exit(EXIT_FAILURE);
}
- qdev_realize(DEVICE(s), NULL, &err);
- if (err != NULL) {
+ if (!qdev_realize(DEVICE(s), NULL, &err)) {
error_reportf_err(err, "Couldn't realize DIGIC SoC: ");
exit(1);
}