platforms/xgene: Make use of dt_device_get_address return value
authorMichal Orzel <michal.orzel@arm.com>
Wed, 27 Apr 2022 09:49:39 +0000 (11:49 +0200)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Wed, 27 Apr 2022 22:23:09 +0000 (15:23 -0700)
commit1afe55905427b7e25936388c65a29c2bbb280bc8
treed54813ae0b1b800d955fce6777afeae848d0c520
parent4026c0d4c4811b8337b4eab3cdea7037cbfb0eb4
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>
xen/arch/arm/platforms/xgene-storm.c