summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2025-04-19 06:36:52 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-05-12 23:50:32 -0700
commit8ab8442d44ee37cc21fdc11530158ee2b2be5ed5 (patch)
treec0bbe19cc3b5b87b438c15cb0b8a7f4c7a6487a4
parent4f05024eba021f1885c044c8515b6a2674b652de (diff)
mm/vmalloc: optimize function vm_unmap_aliases()
Remove unneeded local variables and replace them with values. Link: https://lkml.kernel.org/r/20250418223653.243436-5-bhe@redhat.com Signed-off-by: Baoquan He <bhe@redhat.com> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> Reviewed-by: Shivank Garg <shivankg@amd.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/vmalloc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e58c2ed4bcba..bfc2f2c45d89 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2929,10 +2929,7 @@ static void _vm_unmap_aliases(unsigned long start, unsigned long end, int flush)
*/
void vm_unmap_aliases(void)
{
- unsigned long start = ULONG_MAX, end = 0;
- int flush = 0;
-
- _vm_unmap_aliases(start, end, flush);
+ _vm_unmap_aliases(ULONG_MAX, 0, 0);
}
EXPORT_SYMBOL_GPL(vm_unmap_aliases);