]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[atl1e] Avoid unused variable warning in gcc 4.6
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:08:16 +0000 (19:08 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:32:23 +0000 (19:32 +0000)
Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/atl1e.c

index d1ee064c36de185619a4de3c793b01976d1aea5b..e4dd5c973c23a00da857fd79b42f962798c886bb 100644 (file)
@@ -319,11 +319,7 @@ static void atl1e_cal_ring_size(struct atl1e_adapter *adapter, u32 *ring_size)
 
 static void atl1e_init_ring_resources(struct atl1e_adapter *adapter)
 {
-       struct atl1e_tx_ring *tx_ring = NULL;
-       struct atl1e_rx_ring *rx_ring = NULL;
-
-       tx_ring = &adapter->tx_ring;
-       rx_ring = &adapter->rx_ring;
+       struct atl1e_rx_ring *rx_ring = &adapter->rx_ring;
 
        rx_ring->real_page_size = adapter->rx_ring.page_size
                                 + MAX_FRAME_SIZE