patch-2.2.12 linux/drivers/net/rtl8139.c
Next file: linux/drivers/net/sb1000.c
Previous file: linux/drivers/net/net_init.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed Aug 25 17:29:48 1999
- Orig file:
v2.2.11/linux/drivers/net/rtl8139.c
- Orig date:
Mon Aug 9 16:05:56 1999
diff -u --recursive --new-file v2.2.11/linux/drivers/net/rtl8139.c linux/drivers/net/rtl8139.c
@@ -1042,9 +1042,9 @@
rtl8129_rx(dev);
if (status & (TxOK | TxErr)) {
- unsigned int dirty_tx = tp->dirty_tx;
+ unsigned int dirty_tx;
- while (tp->cur_tx - dirty_tx > 0) {
+ for (dirty_tx = tp->dirty_tx; dirty_tx < tp->cur_tx; dirty_tx++) {
int entry = dirty_tx % NUM_TX_DESC;
int txstatus = inl(ioaddr + TxStatus0 + entry*4);
@@ -1091,7 +1091,6 @@
clear_bit(0, (void*)&dev->tbusy);
mark_bh(NET_BH);
}
- dirty_tx++;
}
#ifndef final_version
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)