Skip to content

Commit f7a553b

Browse files
ranxiaokaiakpm00
authored andcommitted
kho: remove unnecessary WARN_ON(err) in kho_populate()
The following pr_warn() provides detailed error and location information, WARN_ON(err) adds no additional debugging value, so remove the redundant WARN_ON() call. Link: https://lkml.kernel.org/r/20260212111146.210086-3-ranxiaokai627@163.com Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com> Cc: Alexander Graf <graf@amazon.com> Cc: Mike Rapoport <rppt@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 34df6c4 commit f7a553b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/liveupdate/kexec_handover.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ void __init kho_populate(phys_addr_t fdt_phys, u64 fdt_len,
15071507

15081508
memblock_add(area->addr, size);
15091509
err = memblock_mark_kho_scratch(area->addr, size);
1510-
if (WARN_ON(err)) {
1510+
if (err) {
15111511
pr_warn("failed to mark the scratch region 0x%pa+0x%pa: %pe",
15121512
&area->addr, &size, ERR_PTR(err));
15131513
goto unmap_scratch;

0 commit comments

Comments
 (0)