blob: 6e169d20c12dfab2933b2c2293c8a2f6648db1fc [file] [log] [blame]
From 38817f6979fe5817056de8c1fade925831a7a0e6 Mon Sep 17 00:00:00 2001
From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Sat, 22 Jan 2011 18:57:43 -0500
Subject: [PATCH] s2io: delete unused do_spin_lock variable
This thing is delcared, initialized and later written to, but never
read once. Write only memory is overrated.
Found buried in one of tglx's RT merge commits.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index 9984903..3b40857 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -4083,7 +4083,6 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
unsigned long flags = 0;
u16 vlan_tag = 0;
struct fifo_info *fifo = NULL;
- int do_spin_lock = 1;
int offload_type;
int enable_per_list_interrupt = 0;
struct config_param *config = &sp->config;
@@ -4136,7 +4135,6 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
queue += sp->udp_fifo_idx;
if (skb->len > 1024)
enable_per_list_interrupt = 1;
- do_spin_lock = 0;
}
}
}
--
1.7.1.1