Commit 4d26b6ec authored by Wander Lairson Costa's avatar Wander Lairson Costa Committed by Tony Nguyen
Browse files

igbvf: remove unused spinlock



tx_queue_lock and stats_lock are declared and initialized, but never
used. Remove them.

Signed-off-by: default avatarWander Lairson Costa <wander@redhat.com>
Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent f40b0aca
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -169,8 +169,6 @@ struct igbvf_adapter {
	u16 link_speed;
	u16 link_duplex;

	spinlock_t tx_queue_lock; /* prevent concurrent tail updates */

	/* track device up/down/testing state */
	unsigned long state;

@@ -220,7 +218,6 @@ struct igbvf_adapter {
	/* OS defined structs */
	struct net_device *netdev;
	struct pci_dev *pdev;
	spinlock_t stats_lock; /* prevent concurrent stats updates */

	/* structs defined in e1000_hw.h */
	struct e1000_hw hw;
+0 −3
Original line number Diff line number Diff line
@@ -1656,12 +1656,9 @@ static int igbvf_sw_init(struct igbvf_adapter *adapter)
	if (igbvf_alloc_queues(adapter))
		return -ENOMEM;

	spin_lock_init(&adapter->tx_queue_lock);

	/* Explicitly disable IRQ since the NIC can be in any state. */
	igbvf_irq_disable(adapter);

	spin_lock_init(&adapter->stats_lock);
	spin_lock_init(&adapter->hw.mbx_lock);

	set_bit(__IGBVF_DOWN, &adapter->state);