diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/kernel/process.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index dd15de9cde39..07d4fa339eda 100644 --- a/arch/microblaze/kernel/process.c +++ b/arch/microblaze/kernel/process.c | |||
@@ -161,7 +161,6 @@ static void kernel_thread_helper(int (*fn)(void *), void *arg) | |||
161 | int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) | 161 | int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) |
162 | { | 162 | { |
163 | struct pt_regs regs; | 163 | struct pt_regs regs; |
164 | int ret; | ||
165 | 164 | ||
166 | memset(®s, 0, sizeof(regs)); | 165 | memset(®s, 0, sizeof(regs)); |
167 | /* store them in non-volatile registers */ | 166 | /* store them in non-volatile registers */ |
@@ -171,10 +170,8 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) | |||
171 | regs.pc = (unsigned long)kernel_thread_helper; | 170 | regs.pc = (unsigned long)kernel_thread_helper; |
172 | regs.pt_mode = 1; | 171 | regs.pt_mode = 1; |
173 | 172 | ||
174 | ret = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, | 173 | return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, |
175 | ®s, 0, NULL, NULL); | 174 | ®s, 0, NULL, NULL); |
176 | |||
177 | return ret; | ||
178 | } | 175 | } |
179 | 176 | ||
180 | unsigned long get_wchan(struct task_struct *p) | 177 | unsigned long get_wchan(struct task_struct *p) |