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/kernel/signal_64.c | |
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/kernel/signal_64.c')
-rw-r--r-- | arch/x86/kernel/signal_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c index 3b79e179ba3a..a21c85197295 100644 --- a/arch/x86/kernel/signal_64.c +++ b/arch/x86/kernel/signal_64.c | |||
@@ -210,7 +210,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
210 | (unsigned long)fp - sizeof(struct rt_sigframe), 16) - 8; | 210 | (unsigned long)fp - sizeof(struct rt_sigframe), 16) - 8; |
211 | 211 | ||
212 | if (save_i387_xstate(fp) < 0) | 212 | if (save_i387_xstate(fp) < 0) |
213 | err |= -1; | 213 | return -EFAULT; |
214 | } else | 214 | } else |
215 | frame = get_stack(ka, regs, sizeof(struct rt_sigframe)) - 8; | 215 | frame = get_stack(ka, regs, sizeof(struct rt_sigframe)) - 8; |
216 | 216 | ||
@@ -218,8 +218,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
218 | return -EFAULT; | 218 | return -EFAULT; |
219 | 219 | ||
220 | if (ka->sa.sa_flags & SA_SIGINFO) { | 220 | if (ka->sa.sa_flags & SA_SIGINFO) { |
221 | err |= copy_siginfo_to_user(&frame->info, info); | 221 | if (copy_siginfo_to_user(&frame->info, info)) |
222 | if (err) | ||
223 | return -EFAULT; | 222 | return -EFAULT; |
224 | } | 223 | } |
225 | 224 | ||