diff options
| author | Heinrich Schuchardt <[email protected]> | 2022-11-28 10:14:19 +0100 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-12-05 10:36:41 +0530 |
| commit | 1f6866e0159d0c78279e8a22abe73fb39469597d (patch) | |
| tree | 47bedbcad098528617c2cb5a215a38778ffb49d7 | |
| parent | 5daa0ef0875561e7a9152b5e75e147a3ce8afca7 (diff) | |
lib: simplify fdt_translate_address()
Don't assign a value to offset which is never used.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
| -rw-r--r-- | lib/utils/fdt/fdt_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c index 674f17bf..43d78576 100644 --- 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) |
