Skip to content
Commit 4316c640 authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Hans de Goede
Browse files

platform/x86: thinkpad_acpi: Switch to memdup_user_nul() helper



Use memdup_user_nul() helper instead of open-coding to simplify the code.

Signed-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230810122012.2110410-1-ruanjinjie@huawei.com


Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 65c6ea33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment