summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/traps_64.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-04-19 17:52:20 +0900
committerPaul Mundt <lethal@linux-sh.org>2012-04-19 17:52:20 +0900
commitb2212ea41dacda8cce0e7681a3a6ccc76c63802e (patch)
tree85f0dc57ff93f9b0dc221975806c3393eb229cbf /arch/sh/kernel/traps_64.c
parentfb56a91922463abec52a68e26b562c4503810d40 (diff)
downloadlinux-b2212ea41dacda8cce0e7681a3a6ccc76c63802e.tar.gz
linux-b2212ea41dacda8cce0e7681a3a6ccc76c63802e.tar.bz2
linux-b2212ea41dacda8cce0e7681a3a6ccc76c63802e.zip
sh64: Kill off unused trap_no/error_code from thread_struct.
While the trap number and error code are passed around for debugging purposes, this occurs wholly independently of the thread struct values. These values were never part of the sigcontext ABI and are thus never passed anywhere, so we can just kill them off across the board. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/traps_64.c')
-rw-r--r--arch/sh/kernel/traps_64.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c
index 6c0486094e48..8dae93ed8aff 100644
--- a/arch/sh/kernel/traps_64.c
+++ b/arch/sh/kernel/traps_64.c
@@ -283,8 +283,6 @@ static void do_unhandled_exception(int trapnr, int signr, char *str, char *fn_na
unsigned long error_code, struct pt_regs *regs, struct task_struct *tsk)
{
show_excp_regs(fn_name, trapnr, signr, regs);
- tsk->thread.error_code = error_code;
- tsk->thread.trap_no = trapnr;
if (user_mode(regs))
force_sig(signr, tsk);