mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
13a1227a02
commit
07b3837e68
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user