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>
pull/1253/head
Baoquan He 2025-04-19 06:36:52 +08:00 committed by Andrew Morton
parent 4f05024eba
commit 8ab8442d44
1 changed files with 1 additions and 4 deletions

View File

@ -2929,10 +2929,7 @@ static void _vm_unmap_aliases(unsigned long start, unsigned long end, int flush)
*/ */
void vm_unmap_aliases(void) void vm_unmap_aliases(void)
{ {
unsigned long start = ULONG_MAX, end = 0; _vm_unmap_aliases(ULONG_MAX, 0, 0);
int flush = 0;
_vm_unmap_aliases(start, end, flush);
} }
EXPORT_SYMBOL_GPL(vm_unmap_aliases); EXPORT_SYMBOL_GPL(vm_unmap_aliases);