aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/mm/pgtable.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-02-25 14:16:19 +0100
committerIngo Molnar <mingo@kernel.org>2025-02-25 20:50:55 +0100
commit8e8f0306497dea58fb4e8e2558949daae5eeac5c (patch)
tree2e8a07716bb0c1b675845676e3ce789d76a00ae1 /arch/x86/mm/pgtable.c
parentselftests/lam: Test get_user() LAM pointer handling (diff)
downloadwireguard-linux-8e8f0306497dea58fb4e8e2558949daae5eeac5c.tar.xz
wireguard-linux-8e8f0306497dea58fb4e8e2558949daae5eeac5c.zip
x86/mtrr: Remove unnecessary strlen() in mtrr_write()
The local variable length already holds the string length after calling strncpy_from_user(). Using another local variable linlen and calling strlen() is therefore unnecessary and can be removed. Remove linlen and strlen() and use length instead. No change in functionality intended. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20250225131621.329699-2-thorsten.blum@linux.dev
Diffstat (limited to 'arch/x86/mm/pgtable.c')
0 files changed, 0 insertions, 0 deletions