pxe: fix gcc 4.6 problems
authorH. Peter Anvin <hpa@zytor.com>
Fri, 22 Apr 2011 04:23:54 +0000 (21:23 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 22 Apr 2011 04:23:54 +0000 (21:23 -0700)
Remove unused variables, which give gcc 4.6 problems.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/isr.c
core/fs/pxe/tftp.c

index cb2300e..eacf4f8 100644 (file)
@@ -137,13 +137,12 @@ void pxe_init_isr(void)
 void pxe_cleanup_isr(void)
 {
     static __lowmem struct s_PXENV_UNDI_CLOSE undi_close;
-    int err;
 
     sched_hook_func = NULL;
     core_pm_hook = core_pm_null_hook;
     kill_thread(pxe_thread);
  
     memset(&undi_close, 0, sizeof(undi_close));
-    err = pxe_call(PXENV_UNDI_CLOSE, &undi_close);
+    pxe_call(PXENV_UNDI_CLOSE, &undi_close);
     uninstall_irq_vector(pxe_irq_vector, pxe_isr, &pxe_irq_chain);
 }
index 4f21a48..06566d3 100644 (file)
@@ -227,7 +227,6 @@ void tftp_open(struct inode *inode, uint32_t ip, uint16_t server_port,
     const uint8_t  *timeout_ptr;
     jiffies_t timeout;
     jiffies_t oldtime;
-    uint16_t tid;
     uint16_t opcode;
     uint16_t blk_num;
     uint32_t opdata, *opdata_ptr;
@@ -269,7 +268,6 @@ sendreq:
     oldtime = jiffies();
 
     socket->tftp_remoteip = ip;
-    tid = socket->tftp_localport;   /* TID(local port No) */
     nbuf = netbuf_new();
     netbuf_ref(nbuf, rrq_packet_buf, rrq_len);
     addr.addr = ip;