zdump: dump_chunks_init: replace 0 with off variable

...to make clear why `off` is initialized to 0 and that all calls to
`dfo_chunk_add` occur for the same reason. For consistency reasons adapt
the `off` value calculation as well.

Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2021-11-08 17:42:13 +01:00
committed by Jan Höppner
parent 13a1227a02
commit 07b3837e68
+2 -2
View File
@@ -283,8 +283,8 @@ static void dump_chunks_init(void)
struct dfi_mem_chunk *mem_chunk;
u64 off = 0;
dfo_chunk_add(0, l.hdr_size, l.hdr, dfo_chunk_buf_fn);
off = l.hdr_size;
dfo_chunk_add(off, l.hdr_size, l.hdr, dfo_chunk_buf_fn);
off += l.hdr_size;
dfi_mem_chunk_iterate(mem_chunk) {
if (mem_chunk->read_fn == dfi_mem_chunk_read_zero)
/* Zero memory chunk */