aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-08-03 17:57:39 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:26:30 -0400
commit7281cd22973008a782860e48ed8d85d00204168c (patch)
treea7422ee8592cd9dc0cd191409a9a491a19031ea4 /arch/mips/kernel/traps.c
parent9bb4d9dfd890372092338cc460b3f921c8be8e31 (diff)
MIPS: Remove unused task_struct.trap_no field.
It is initialized to zero and only ever read. Remove it, and pass zero in its place. Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1531/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 4c6079f24958..6019e9ea9a6b 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -376,7 +376,7 @@ void __noreturn die(const char * str, struct pt_regs * regs)
376 mips_mt_regdump(dvpret); 376 mips_mt_regdump(dvpret);
377#endif /* CONFIG_MIPS_MT_SMTC */ 377#endif /* CONFIG_MIPS_MT_SMTC */
378 378
379 if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_no, SIGSEGV) == NOTIFY_STOP) 379 if (notify_die(DIE_OOPS, str, regs, 0, 0, SIGSEGV) == NOTIFY_STOP)
380 sig = 0; 380 sig = 0;
381 381
382 printk("%s[#%d]:\n", str, ++die_counter); 382 printk("%s[#%d]:\n", str, ++die_counter);