From: Andi Kleen <[email protected]>

Found by gcc 4.6's new warnings

Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
---
 arch/x86/kernel/kgdb.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index bae8982..a8b8097 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,
 {
        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);
-- 
1.6.4.rc1


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to