mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
s390/setup: Cleanup stack_alloc() and stack_free()
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>
This commit is contained in:
parent
27939d6cde
commit
7ad0075005
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user