Skip to content

Commit

Permalink
KGDB: Remove set but unused newPC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Jason Wessel committed Aug 5, 2010
1 parent 19063c7 commit 9264b27
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
{
unsigned long addr;
char *ptr;
int newPC;

switch (remcomInBuffer[0]) {
case 'c':
Expand All @@ -467,8 +466,6 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
linux_regs->ip = addr;
case 'D':
case 'k':
newPC = linux_regs->ip;

/* clear the trace bit */
linux_regs->flags &= ~X86_EFLAGS_TF;
atomic_set(&kgdb_cpu_doing_single_step, -1);
Expand Down

0 comments on commit 9264b27

Please sign in to comment.