| From 05573dc3b047be9deb4f873584121cbbaafb6922 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> |
| --- |
| drivers/net/s2io.c | 2 -- |
| 1 files changed, 0 insertions(+), 2 deletions(-) |
| |
| diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c |
| index 7e57dc4..c1eea6c 100644 |
| --- a/drivers/net/s2io.c |
| +++ b/drivers/net/s2io.c |
| @@ -4084,7 +4084,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; |
| @@ -4137,7 +4136,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.0.4 |
| |