mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-15 10:08:18 +00:00
[atl1e] Avoid unused variable warning in gcc 4.6
Reported-by: Ralph Giles <giles@thaumas.net> Tested-by: Ralph Giles <giles@thaumas.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
68a48b2220
commit
4382b35067
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user