Skip to content
Commit 6ddf71e6 authored by Jacob Garber's avatar Jacob Garber Committed by Anup Patel
Browse files

lib: Use correct type for return value



The error check 'plic_off < 0' does nothing, since plic_off is stored as
a u32. Fix this by changing it to an int, which matches the return type of
fdt_node_offset_by_compatible().

Signed-off-by: default avatarJacob Garber <jgarber1@ualberta.ca>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
parent 3f738f58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment