mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +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
@@ -687,7 +687,7 @@ static int ns83820_poll(struct nic *nic, int retrieve)
|
||||
// rx_ring[entry].link = 0;
|
||||
rx_ring[entry].cmdsts = cpu_to_le32(CMDSTS_OWN);
|
||||
|
||||
ns->cur_rx = ++ns->cur_rx % NR_RX_DESC;
|
||||
ns->cur_rx = (ns->cur_rx + 1) % NR_RX_DESC;
|
||||
|
||||
if (ns->cur_rx == 0) /* We have wrapped the ring */
|
||||
kick_rx();
|
||||
|
||||
Reference in New Issue
Block a user