[PATCH v2] fs/proc/vmcore: a few cleanups for vmcore_add_device_dump
Dan Carpenter
dan.carpenter at linaro.org
Thu Jun 26 06:24:43 PDT 2025
On Thu, Jun 26, 2025 at 06:54:41PM +0800, Su Hui wrote:
> There are two cleanups for vmcore_add_device_dump(). Return -ENOMEM
> directly rather than goto the label to simplify the code. Using
> scoped_guard() to simplify the lock/unlock code.
>
> Signed-off-by: Su Hui <suhui at nfschina.com>
> ---
Reviewed-by: Dan Carpenter <dan.carpenter at linaro.org>
regards,
dan carpenter
More information about the kexec
mailing list