platforms/xgene: Make use of dt_device_get_address return value

Currently function xgene_check_pirq_eoi assigns the return value of
dt_device_get_address to a variable res but does not make use of it.
Fix it by making use of res in the condition checking the result of a
call to dt_device_get_address instead of checking the address stored in
dbase.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
Michal Orzel authored and Stefano Stabellini committed 2022-04-27 15:23:09 -07:00
1 parent 4026c0d4c4
commit 1afe559054
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ static void __init xgene_check_pirq_eoi(void)
panic("%s: Can not find interrupt controller node\n", __func__);
res = dt_device_get_address(node, 0, &dbase, NULL);
if ( !dbase )
if ( res )
panic("%s: Cannot find a valid address for the distributor\n", __func__);
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.