]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kho: cleanup error handling in kho_populate()
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Thu, 22 Jan 2026 12:17:57 +0000 (14:17 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 1 Feb 2026 00:16:08 +0000 (16:16 -0800)
commitb50634c5e84a7a57c20b03e367a43f1b63b7ea23
tree8eaa1d185b1d55997465df183847a55eb25cbc54
parent0895a000e4fff9e950a7894210db45973e485c35
kho: cleanup error handling in kho_populate()

* use dedicated labels for error handling instead of checking if a pointer
  is not null to decide if it should be unmapped
* drop assignment of values to err that are only used to print a numeric
  error code, there are pr_warn()s for each failure already so printing a
  numeric error code in the next line does not add anything useful

Link: https://lkml.kernel.org/r/20260122121757.575987-1-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/liveupdate/kexec_handover.c