drivers: net: misc: Remove unused OOM variables
authorJoe Perches <joe@perches.com>
Mon, 4 Feb 2013 18:22:29 +0000 (18:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2013 19:58:52 +0000 (14:58 -0500)
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.

Noticed-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
drivers/net/wimax/i2400m/rx.c

index db50598006efd1a9f081da5be3b8cc19ed425ad1..4782dcfde736cbd2d2b6621accf05180c3c54494 100644 (file)
@@ -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)
index 8077e6e35939186e7d5893e4a5ae095cd5158058..0b602951ff6bafb65a7b6094e1a0640d91fd8660 100644 (file)
@@ -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) {