aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-09-12 20:02:53 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-14 09:35:51 -0400
commit2ba48e16e78216bb5b9fd08a088bfefda478df25 (patch)
treeb6c3c5b9fa9f7b0a2f7998c2439569ff40bbfd5d /arch/x86/kernel/signal_32.c
parent3d0aedd9538e6be8afec1a9d8b084bf90bc91495 (diff)
x86: signal: remove unneeded err handling
This patch eliminates unused or unneeded variable handling. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 1c22e0067fe7..d433861a6599 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -351,18 +351,15 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
351 if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) 351 if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
352 return -EFAULT; 352 return -EFAULT;
353 353
354 err = __put_user(sig, &frame->sig); 354 if (__put_user(sig, &frame->sig))
355 if (err)
356 return -EFAULT; 355 return -EFAULT;
357 356
358 err = setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0]); 357 if (setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0]))
359 if (err)
360 return -EFAULT; 358 return -EFAULT;
361 359
362 if (_NSIG_WORDS > 1) { 360 if (_NSIG_WORDS > 1) {
363 err = __copy_to_user(&frame->extramask, &set->sig[1], 361 if (__copy_to_user(&frame->extramask, &set->sig[1],
364 sizeof(frame->extramask)); 362 sizeof(frame->extramask)))
365 if (err)
366 return -EFAULT; 363 return -EFAULT;
367 } 364 }
368 365