Messages in this thread Patch in this message | | | From | Rickard Strandqvist <> | Subject | [PATCH] arch: mn10300: kernel: traps.c: Remove unused function | Date | Sun, 7 Dec 2014 22:07:20 +0100 |
| |
Remove the function show_trace_task() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> --- arch/mn10300/kernel/traps.c | 14 -------------- 1 file changed, 14 deletions(-)
diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c index a7a987c..be67383 100644 --- a/arch/mn10300/kernel/traps.c +++ b/arch/mn10300/kernel/traps.c @@ -388,20 +388,6 @@ bad: } /* - * - */ -void show_trace_task(struct task_struct *tsk) -{ - unsigned long sp = tsk->thread.sp; - - /* User space on another CPU? */ - if ((sp ^ (unsigned long) tsk) & (PAGE_MASK << 1)) - return; - - show_trace((unsigned long *) sp); -} - -/* * note the untimely death of part of the kernel */ void die(const char *str, struct pt_regs *regs, enum exception_code code) -- 1.7.10.4
| |