|
@@ -1097,7 +1097,7 @@ sis900_transmit(struct nic *nic,
|
1097
|
1097
|
const char *p) /* Packet */
|
1098
|
1098
|
{
|
1099
|
1099
|
u32 to, nstype;
|
1100
|
|
- u32 tx_status;
|
|
1100
|
+ volatile u32 tx_status;
|
1101
|
1101
|
|
1102
|
1102
|
/* Stop the transmitter */
|
1103
|
1103
|
outl(TxDIS | inl(ioaddr + cr), ioaddr + cr);
|
|
@@ -1136,7 +1136,7 @@ sis900_transmit(struct nic *nic,
|
1136
|
1136
|
|
1137
|
1137
|
to = currticks() + TX_TIMEOUT;
|
1138
|
1138
|
|
1139
|
|
- while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
|
1139
|
+ while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
1140
|
1140
|
/* wait */ ;
|
1141
|
1141
|
|
1142
|
1142
|
if (currticks() >= to) {
|