[PATCH] chelsio: remove unused mutex
authorStephen Hemminger <shemminger@osdl.org>
Sat, 2 Dec 2006 00:36:15 +0000 (16:36 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:24:49 +0000 (00:24 -0500)
This mutex is unused in current (non TOE) code.

Signed-off-by: Stephen Hemminger<shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/chelsio/common.h
drivers/net/chelsio/cxgb2.c

index 5d9dd14427c5f30ac27d777c684e0b7c3d5d0d66..efe1f6685285ff2dc26836e569da5b40ff4cf75f 100644 (file)
@@ -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 */
index 1d78d5d4b1a743fbef6d487c92d4b5edee8a72fa..42ad9cfd670a3adaf589002daf67bd18a3044098 100644 (file)
@@ -1040,7 +1040,6 @@ static int __devinit init_one(struct pci_dev *pdev,
                        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);