projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19063c7
)
KGDB: Remove set but unused newPC
author
Andi Kleen
<ak@linux.intel.com>
Thu, 5 Aug 2010 14:22:24 +0000
(09:22 -0500)
committer
Jason Wessel
<jason.wessel@windriver.com>
Thu, 5 Aug 2010 14:22:24 +0000
(09:22 -0500)
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>
arch/x86/kernel/kgdb.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/kgdb.c
b/arch/x86/kernel/kgdb.c
index
bae8982
..
a8b8097
100644
(file)
--- 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,
{
unsigned long addr;
char *ptr;
- int newPC;
switch (remcomInBuffer[0]) {
case 'c':
@@
-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);