]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
the uncontroversal gcc 4.0 compilation fixes
authorGeorge Baum <gbaum@users.sourceforge.net>
Mon, 23 May 2005 19:30:37 +0000 (19:30 +0000)
committerGeorge Baum <gbaum@users.sourceforge.net>
Mon, 23 May 2005 19:30:37 +0000 (19:30 +0000)
src/drivers/net/natsemi.c
src/drivers/net/sis900.c

index 774b5e31034b343ae9ed4c4ed41ef0515e863fe4..e8f6d81c131a2b0ee2008336553f37d2f39d267c 100644 (file)
@@ -604,7 +604,7 @@ natsemi_transmit(struct nic  *nic,
                 const char  *p)     /* Packet */
 {
     u32 to, nstype;
-    u32 tx_status;
+    volatile u32 tx_status;
     
     /* Stop the transmitter */
     outl(TxOff, ioaddr + ChipCmd);
@@ -643,7 +643,7 @@ natsemi_transmit(struct nic  *nic,
 
     to = currticks() + TX_TIMEOUT;
 
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {
index b5ba3f08bdb82941907049a1a58b10bb08e985d9..c2cb94e8745d3194d68b8bbf9c8cfc0bf7091b76 100644 (file)
@@ -1097,7 +1097,7 @@ sis900_transmit(struct nic  *nic,
                 const char  *p)     /* Packet */
 {
     u32 to, nstype;
-    u32 tx_status;
+    volatile u32 tx_status;
     
     /* Stop the transmitter */
     outl(TxDIS | inl(ioaddr + cr), ioaddr + cr);
@@ -1136,7 +1136,7 @@ sis900_transmit(struct nic  *nic,
 
     to = currticks() + TX_TIMEOUT;
 
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {