Skip to content

Commit 0787516

Browse files
committed
elfloader: make check more intuitive
Signed-off-by: Axel Heider <axelheider@gmx.de>
1 parent f43fe93 commit 0787516

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elfloader-tool/src/arch-arm/smp_boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void non_boot_main(void)
4040
}
4141

4242
/* Do any driver specific non_boot core init */
43-
if (initialise_devices_non_boot()) {
43+
if (0 != initialise_devices_non_boot()) {
4444
printf("ERROR: Did not successfully return from initialise_devices_non_boot()\n");
4545
abort();
4646
}

elfloader-tool/src/arch-arm/sys_boot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void main(UNUSED void *arg)
104104
void *bootloader_dtb = NULL;
105105

106106
/* initialize platform to a state where we can print to a UART */
107-
if (initialise_devices()) {
107+
if (0 != initialise_devices()) {
108108
printf("ERROR: Did not successfully return from initialise_devices()\n");
109109
abort();
110110
}
@@ -179,7 +179,7 @@ void continue_boot(int was_relocated)
179179
* driver model so all its pointers are set up properly.
180180
*/
181181
if (was_relocated) {
182-
if (initialise_devices()) {
182+
if (0 != initialise_devices()) {
183183
printf("ERROR: Did not successfully return from initialise_devices()\n");
184184
abort();
185185
}

0 commit comments

Comments
 (0)