From: Baoquan He Date: Fri, 18 Apr 2025 22:36:52 +0000 (+0800) Subject: mm/vmalloc: optimize function vm_unmap_aliases() X-Git-Tag: v6.16-rc1~92^2~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ab8442d44ee37cc21fdc11530158ee2b2be5ed5;p=thirdparty%2Flinux.git 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 Reviewed-by: Uladzislau Rezki (Sony) Reviewed-by: Vishal Moola (Oracle) Reviewed-by: Shivank Garg Signed-off-by: Andrew Morton --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e58c2ed4bcba7..bfc2f2c45d893 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);