]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
s390/setup: Cleanup stack_alloc() and stack_free()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 2 Dec 2024 11:56:39 +0000 (12:56 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 10 Dec 2024 14:41:58 +0000 (15:41 +0100)
Some small cleanups to stack_alloc() and stack_free():

- Rename ret to stack to reflect what the variable is used for
- Whitespace removal

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/setup.c

index 514c149a4636cd6009d1ef1ff270e97a9fcb5dd4..bd62683c5585ac7f48006824eb8e95ba163148fa 100644 (file)
@@ -359,17 +359,17 @@ void *restart_stack;
 
 unsigned long stack_alloc(void)
 {
-       void *ret;
+       void *stack;
 
-       ret = __vmalloc_node(THREAD_SIZE, THREAD_SIZE, THREADINFO_GFP,
-                            NUMA_NO_NODE, __builtin_return_address(0));
-       kmemleak_not_leak(ret);
-       return (unsigned long)ret;
+       stack = __vmalloc_node(THREAD_SIZE, THREAD_SIZE, THREADINFO_GFP,
+                              NUMA_NO_NODE, __builtin_return_address(0));
+       kmemleak_not_leak(stack);
+       return (unsigned long)stack;
 }
 
 void stack_free(unsigned long stack)
 {
-       vfree((void *) stack);
+       vfree((void *)stack);
 }
 
 static unsigned long __init stack_alloc_early(void)