projects
/
platform
/
kernel
/
opensbi-spacemit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8eec91
)
lib: simplify fdt_parse_plicsw_node()
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Mon, 28 Nov 2022 09:14:16 +0000
(10:14 +0100)
committer
Anup Patel
<anup@brainfault.org>
Mon, 5 Dec 2022 05:01:01 +0000
(10:31 +0530)
We should not check !plicsw_base || !size twice.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
lib/utils/fdt/fdt_helper.c
patch
|
blob
|
history
diff --git
a/lib/utils/fdt/fdt_helper.c
b/lib/utils/fdt/fdt_helper.c
index
dbd7484
..
87b9fb2
100644
(file)
--- a/
lib/utils/fdt/fdt_helper.c
+++ b/
lib/utils/fdt/fdt_helper.c
@@
-868,7
+868,7
@@
int fdt_parse_plicsw_node(void *fdt, int nodeoffset, unsigned long *plicsw_base,
rc = fdt_get_node_addr_size(fdt, nodeoffset, 0,
®_addr, ®_size);
- if (rc < 0
|| !plicsw_base || !size
)
+ if (rc < 0)
return SBI_ENODEV;
*plicsw_base = reg_addr;
*size = reg_size;