diff options
author | Bruce Rogers | 2010-04-03 02:16:38 +0200 |
---|---|---|
committer | Marty Connor | 2010-04-16 13:32:49 +0200 |
commit | f7c5918b179be57fc7f352cb33664eb43de02c30 (patch) | |
tree | e973cfc1dba4ccbc72ca4a3e363cbb7a2d44ef63 /src/drivers/net/tulip.c | |
parent | [build] Add support for local configuration files (diff) | |
download | ipxe-f7c5918b179be57fc7f352cb33664eb43de02c30.tar.gz ipxe-f7c5918b179be57fc7f352cb33664eb43de02c30.tar.xz ipxe-f7c5918b179be57fc7f352cb33664eb43de02c30.zip |
[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>
Diffstat (limited to 'src/drivers/net/tulip.c')
-rw-r--r-- | src/drivers/net/tulip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/net/tulip.c b/src/drivers/net/tulip.c index e08e0d84..af30ec64 100644 --- a/src/drivers/net/tulip.c +++ b/src/drivers/net/tulip.c @@ -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; } |