Skip to content

Commit

Permalink
elfloader: make check more intuitive
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <axelheider@gmx.de>
  • Loading branch information
axel-h committed Mar 22, 2024
1 parent 8c660fd commit 0edf1d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elfloader-tool/src/arch-arm/smp_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void non_boot_main(void)
}

/* Do any driver specific non_boot core init */
if (initialise_devices_non_boot()) {
if (0 != initialise_devices_non_boot()) {
printf("ERROR: Did not successfully return from initialise_devices_non_boot()\n");
abort();
}
Expand Down
4 changes: 2 additions & 2 deletions elfloader-tool/src/arch-arm/sys_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void main(UNUSED void *arg)
void *bootloader_dtb = NULL;

/* initialize platform to a state where we can print to a UART */
if (initialise_devices()) {
if (0 != initialise_devices()) {
printf("ERROR: Did not successfully return from initialise_devices()\n");
abort();
}
Expand Down Expand Up @@ -179,7 +179,7 @@ void continue_boot(int was_relocated)
* driver model so all its pointers are set up properly.
*/
if (was_relocated) {
if (initialise_devices()) {
if (0 != initialise_devices()) {
printf("ERROR: Did not successfully return from initialise_devices()\n");
abort();
}
Expand Down

0 comments on commit 0edf1d0

Please sign in to comment.