MIPS: IP27: Fix GCC 4.6.0 build error.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 11 Apr 2011 09:37:15 +0000 (11:37 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 10 May 2011 17:15:25 +0000 (18:15 +0100)
  CC      arch/mips/sgi-ip27/ip27-hubio.o
arch/mips/sgi-ip27/ip27-hubio.c: In function 'hub_pio_map':
arch/mips/sgi-ip27/ip27-hubio.c:32:20: error: variable 'junk' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip27/ip27-klnuma.c

index c3d30a88daf3a1555f9a1495f058210479a3b0ce..1d1919a44e88c350685866d8420b24fa9e168dc9 100644 (file)
@@ -54,11 +54,8 @@ void __init setup_replication_mask(void)
 
 static __init void set_ktext_source(nasid_t client_nasid, nasid_t server_nasid)
 {
-       cnodeid_t client_cnode;
        kern_vars_t *kvp;
 
-       client_cnode = NASID_TO_COMPACT_NODEID(client_nasid);
-
        kvp = &hub_data(client_nasid)->kern_vars;
 
        KERN_VARS_ADDR(client_nasid) = (unsigned long)kvp;