lkml.org 
[lkml]   [2014]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] arch: mn10300: kernel: traps.c: Remove unused function
Date
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


\
 
 \ /
  Last update: 2014-12-07 22:41    [W:0.026 / U:1.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site