[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:
Bruce Rogers
2010-04-02 18:16:38 -06:00
committed by Marty Connor
parent 46d6ec7d77
commit f7c5918b17
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}