diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 03:54:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 03:54:51 -0400 |
commit | c96922c7beeb6246f36b89a1e8b61d99a435a780 (patch) | |
tree | 897aa7c6d6d7051d1cbb14efc58e6aff266de2da /drivers/net/atl1e/atl1e_main.c | |
parent | f8dfc4528b93ba9c9a191151f8888b4da1d1a45b (diff) |
atl1e: Fix set-but-unused variable.
The variable 'tx_ring' is set but unused in
atl1e_init_ring_resources(). Just kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1e/atl1e_main.c')
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index 9900ca1d8ed..86a91228313 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -691,10 +691,8 @@ static void atl1e_cal_ring_size(struct atl1e_adapter *adapter, u32 *ring_size) | |||
691 | 691 | ||
692 | static void atl1e_init_ring_resources(struct atl1e_adapter *adapter) | 692 | static void atl1e_init_ring_resources(struct atl1e_adapter *adapter) |
693 | { | 693 | { |
694 | struct atl1e_tx_ring *tx_ring = NULL; | ||
695 | struct atl1e_rx_ring *rx_ring = NULL; | 694 | struct atl1e_rx_ring *rx_ring = NULL; |
696 | 695 | ||
697 | tx_ring = &adapter->tx_ring; | ||
698 | rx_ring = &adapter->rx_ring; | 696 | rx_ring = &adapter->rx_ring; |
699 | 697 | ||
700 | rx_ring->real_page_size = adapter->rx_ring.page_size | 698 | rx_ring->real_page_size = adapter->rx_ring.page_size |