projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5daa0ef
)
lib: simplify fdt_translate_address()
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Mon, 28 Nov 2022 09:14:19 +0000
(10:14 +0100)
committer
Anup Patel
<anup@brainfault.org>
Mon, 5 Dec 2022 05:06:41 +0000
(10:36 +0530)
Don't assign a value to offset which is never used.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Xiang W <wxjstz@126.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 674f17bf6a1bc67e2c2b058cc6c30549ba956ff7..43d78576d9baada37d4c94ab8a5d44b1069079b1 100644
(file)
--- a/
lib/utils/fdt/fdt_helper.c
+++ b/
lib/utils/fdt/fdt_helper.c
@@
-124,7
+124,7
@@
static int fdt_translate_address(void *fdt, uint64_t reg, int parent,
int i, rlen;
int cell_addr, cell_size;
const fdt32_t *ranges;
- uint64_t offset
= 0
, caddr = 0, paddr = 0, rsize = 0;
+ uint64_t offset, caddr = 0, paddr = 0, rsize = 0;
cell_addr = fdt_address_cells(fdt, parent);
if (cell_addr < 1)