mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
the uncontroversal gcc 4.0 compilation fixes
This commit is contained in:
parent
fd49648a35
commit
c4c05bbbf7
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user