]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/vmalloc: optimize function vm_unmap_aliases()
authorBaoquan He <bhe@redhat.com>
Fri, 18 Apr 2025 22:36:52 +0000 (06:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 13 May 2025 06:50:32 +0000 (23:50 -0700)
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>
mm/vmalloc.c

index e58c2ed4bcba7b40724bb3a70e54168864c3c8cc..bfc2f2c45d89332be45a40e69dcefa8531fa82c0 100644 (file)
@@ -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);