diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-09-12 20:02:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-14 09:35:51 -0400 |
commit | 2ba48e16e78216bb5b9fd08a088bfefda478df25 (patch) | |
tree | b6c3c5b9fa9f7b0a2f7998c2439569ff40bbfd5d /arch/x86/ia32 | |
parent | 3d0aedd9538e6be8afec1a9d8b084bf90bc91495 (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/ia32')
-rw-r--r-- | arch/x86/ia32/ia32_signal.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index 5f42cfcc1c5a..e47bed2440ee 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c | |||
@@ -446,18 +446,15 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka, | |||
446 | if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) | 446 | if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) |
447 | return -EFAULT; | 447 | return -EFAULT; |
448 | 448 | ||
449 | err |= __put_user(sig, &frame->sig); | 449 | if (__put_user(sig, &frame->sig)) |
450 | if (err) | ||
451 | return -EFAULT; | 450 | return -EFAULT; |
452 | 451 | ||
453 | err |= ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0]); | 452 | if (ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) |
454 | if (err) | ||
455 | return -EFAULT; | 453 | return -EFAULT; |
456 | 454 | ||
457 | if (_COMPAT_NSIG_WORDS > 1) { | 455 | if (_COMPAT_NSIG_WORDS > 1) { |
458 | err |= __copy_to_user(frame->extramask, &set->sig[1], | 456 | if (__copy_to_user(frame->extramask, &set->sig[1], |
459 | sizeof(frame->extramask)); | 457 | sizeof(frame->extramask))) |
460 | if (err) | ||
461 | return -EFAULT; | 458 | return -EFAULT; |
462 | } | 459 | } |
463 | 460 | ||