mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 10:01:03 +03:00
[drivers] Fix warnings identified by gcc 4.5
In building gpxe for openSUSE Factory (part of kvm package), there were a few problems identified by the compiler. This patch addresses them. Signed-off-by: Bruce Rogers <brogers@novell.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
committed by
Marty Connor
parent
46d6ec7d77
commit
f7c5918b17
@@ -1171,7 +1171,7 @@ static int tulip_poll(struct nic *nic, int retrieve)
|
||||
if (rx_ring[tp->cur_rx].status & 0x00008000) {
|
||||
/* return the descriptor and buffer to receive ring */
|
||||
rx_ring[tp->cur_rx].status = 0x80000000;
|
||||
tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE;
|
||||
tp->cur_rx = (tp->cur_rx + 1) % RX_RING_SIZE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1180,7 +1180,7 @@ static int tulip_poll(struct nic *nic, int retrieve)
|
||||
|
||||
/* return the descriptor and buffer to receive ring */
|
||||
rx_ring[tp->cur_rx].status = 0x80000000;
|
||||
tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE;
|
||||
tp->cur_rx = (tp->cur_rx + 1) % RX_RING_SIZE;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user