Commit dac847ae authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger

um: process: remove unused 'n' variable

The return value of fn() wasn't used for a long time,
so no need to assign it to a variable, addressing a
W=1 warning.

This seems to be - with patches from others posted to
the list before - the last W=1 warning in arch/um/.

Fixes: 22e2430d ("x86, um: convert to saner kernel_execve() semantics")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 2caa4982
...@@ -109,7 +109,7 @@ int get_current_pid(void) ...@@ -109,7 +109,7 @@ int get_current_pid(void)
*/ */
void new_thread_handler(void) void new_thread_handler(void)
{ {
int (*fn)(void *), n; int (*fn)(void *);
void *arg; void *arg;
if (current->thread.prev_sched != NULL) if (current->thread.prev_sched != NULL)
...@@ -122,7 +122,7 @@ void new_thread_handler(void) ...@@ -122,7 +122,7 @@ void new_thread_handler(void)
/* /*
* callback returns only if the kernel thread execs a process * callback returns only if the kernel thread execs a process
*/ */
n = fn(arg); fn(arg);
userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs); userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment