aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kgdb.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2010-08-05 10:22:24 -0400
committerJason Wessel <jason.wessel@windriver.com>2010-08-05 10:22:24 -0400
commit9264b278be42c031dc76517a0d4bb154f5dcf470 (patch)
tree0b5e63d9683e14ee5926e2b7c67034d5aae7b176 /arch/x86/kernel/kgdb.c
parent19063c776fe745fab11216422cf56489ee83b452 (diff)
KGDB: Remove set but unused newPC
Found by gcc 4.6's new warnings Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'arch/x86/kernel/kgdb.c')
-rw-r--r--arch/x86/kernel/kgdb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index bae89825e14e..a8b80979ceb8 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -456,7 +456,6 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
456{ 456{
457 unsigned long addr; 457 unsigned long addr;
458 char *ptr; 458 char *ptr;
459 int newPC;
460 459
461 switch (remcomInBuffer[0]) { 460 switch (remcomInBuffer[0]) {
462 case 'c': 461 case 'c':
@@ -467,8 +466,6 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
467 linux_regs->ip = addr; 466 linux_regs->ip = addr;
468 case 'D': 467 case 'D':
469 case 'k': 468 case 'k':
470 newPC = linux_regs->ip;
471
472 /* clear the trace bit */ 469 /* clear the trace bit */
473 linux_regs->flags &= ~X86_EFLAGS_TF; 470 linux_regs->flags &= ~X86_EFLAGS_TF;
474 atomic_set(&kgdb_cpu_doing_single_step, -1); 471 atomic_set(&kgdb_cpu_doing_single_step, -1);