Re: [PATCH v1 1/2] kho: remove useless phys increment in inner loop
Pratyush Yadav <[email protected]>
| Newsgroups | org.infradead.lists.kexec,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 07 2026, Chenghao Duan wrote: > The statement phys += contig_pages * PAGE_SIZE at the end of the inner > for-loop in kho_restore_vmalloc() is redundant code. The variable 'phys' > is local to each loop iteration (re-assigned from chunk->phys[i] on every > iteration) and is never referenced after this increment, so the statement > has no functional impact. Remove it to avoid confusion during code review. > > Signed-off-by: Chenghao Duan <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> [...] -- Regards, Pratyush Yadav