Skip to content

Commit

Permalink
x86, dumpstack: Fix unused variable warning
Browse files Browse the repository at this point in the history
In dump_stack function, bp isn't used anymore, which is introduced by
commit 9c0729d. This patch removes bp
completely.

Signed-off-by: Rakib Mullick <[email protected]>
Cc: Soeren Sandmann <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: H. Peter Anvin <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
  • Loading branch information
rmullick authored and fweisbec committed Jan 7, 2011
1 parent f2fd439 commit 39a6eeb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/x86/kernel/dumpstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,8 @@ void show_stack(struct task_struct *task, unsigned long *sp)
*/
void dump_stack(void)
{
unsigned long bp = 0;
unsigned long stack;

#ifdef CONFIG_FRAME_POINTER
if (!bp)
get_bp(bp);
#endif

printk("Pid: %d, comm: %.20s %s %s %.*s\n",
current->pid, current->comm, print_tainted(),
init_utsname()->release,
Expand Down

0 comments on commit 39a6eeb

Please sign in to comment.