mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/arm: domain_build: Remove redundant check in make_vpl011_uart_node()
None of the code since the last check of res modify the value. So the check can be removed. Coverity-ID: 1476824 Signed-off-by: Julien Grall <julien.grall@arm.com> Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
940731ecc0
commit
698b05d18d
1 file changed
+1
-2
@@ -1661,8 +1661,7 @@ static int __init make_vpl011_uart_node(const struct domain *d, void *fdt)
|
||||
dt_child_set_range(&cells, GUEST_ROOT_ADDRESS_CELLS,
|
||||
GUEST_ROOT_SIZE_CELLS, GUEST_PL011_BASE,
|
||||
GUEST_PL011_SIZE);
|
||||
if ( res )
|
||||
return res;
|
||||
|
||||
res = fdt_property(fdt, "reg", reg, sizeof(reg));
|
||||
if ( res )
|
||||
return res;
|
||||
|
||||