Skip to contentSkip to conversation

drivers: net: misc: Remove unused OOM variables

PATCH Applied Joe Perches 2 participants 2 messages Feb 5, 2013 – Feb 6, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 51108250.mCy4M9/YF2ueqPWm%[email protected]

#1 lore raw

PATCH 1/1 drivers: net: misc: Remove unused OOM variables

commits 9d11bd159
("wimax: Remove unnecessary alloc/OOM messages, alloc cleanups") and b2adaca92
("ethernet: Remove unnecessary alloc/OOM messages, alloc cleanups") added a couple of unused variable warnings.

Remove the now unused variables.

---
 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | 1 -
 drivers/net/wimax/i2400m/rx.c                        | 1 -
 2 files changed, 2 deletions(-)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c +0 -1
index db50598..4782dcf 100644
@@ -201,7 +201,6 @@ int netxen_alloc_sw_resources(struct netxen_adapter *adapter)
 
 	struct netxen_cmd_buffer *cmd_buf_arr;
 	struct net_device *netdev = adapter->netdev;
-	struct pci_dev *pdev = adapter->pdev;
 
 	tx_ring = kzalloc(sizeof(struct nx_host_tx_ring), GFP_KERNEL);
 	if (tx_ring == NULL)
drivers/net/wimax/i2400m/rx.c +0 -1
index 8077e6e..0b60295 100644
@@ -1346,7 +1346,6 @@ EXPORT_SYMBOL(i2400m_unknown_barker);
 int i2400m_rx_setup(struct i2400m *i2400m)
 {
 	int result = 0;
-	struct device *dev = i2400m_dev(i2400m);
 
 	i2400m->rx_reorder = i2400m_rx_reorder_disabled? 0 : 1;
 	if (i2400m->rx_reorder) {