lkml.org 
[lkml]   [2010]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/15] KGDB: Remove set but unused newPC
    Date
    From: Andi Kleen <ak@linux.intel.com>

    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 | 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


    \
     
     \ /
      Last update: 2010-07-30 21:21    [W:0.021 / U:32.284 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site