Subject: [PATCH 03/10] chelsio: remove unused mutex

From: Stephen Hemminger <[email-masked]>
Date: Fri, 01 Dec 2006 16:36:15 -0800

This mutex is unused in current (non TOE) code.

Signed-off-by: Stephen Hemminger<[email-masked]>

---
 drivers/net/chelsio/common.h |    1 -
 drivers/net/chelsio/cxgb2.c  |    1 -
 2 files changed, 2 deletions(-)

--- chelsio-t2.orig/drivers/net/chelsio/common.h
+++ chelsio-t2/drivers/net/chelsio/common.h
@@ -212,7 +212,6 @@ struct adapter {
 	struct work_struct stats_update_task;
 	struct timer_list stats_update_timer;
 
-	struct semaphore mib_mutex;
 	spinlock_t tpi_lock;
 	spinlock_t work_lock;
 	/* guards async operations */
--- chelsio-t2.orig/drivers/net/chelsio/cxgb2.c
+++ chelsio-t2/drivers/net/chelsio/cxgb2.c
@@ -1040,7 +1040,6 @@ static int __devinit init_one(struct pci
 			adapter->msg_enable = dflt_msg_enable;
 			adapter->mmio_len = mmio_len;
 
-			init_MUTEX(&adapter->mib_mutex);
 			spin_lock_init(&adapter->tpi_lock);
 			spin_lock_init(&adapter->work_lock);
 			spin_lock_init(&adapter->async_lock);

--