|
@@ -1035,7 +1035,8 @@ static int el3_rx(struct net_device *dev, int worklimit)
|
|
DEBUG(3, "%s: in rx_packet(), status %4.4x, rx_status %4.4x.\n",
|
|
DEBUG(3, "%s: in rx_packet(), status %4.4x, rx_status %4.4x.\n",
|
|
dev->name, inw(ioaddr+EL3_STATUS), inw(ioaddr+RxStatus));
|
|
dev->name, inw(ioaddr+EL3_STATUS), inw(ioaddr+RxStatus));
|
|
while (!((rx_status = inw(ioaddr + RxStatus)) & 0x8000) &&
|
|
while (!((rx_status = inw(ioaddr + RxStatus)) & 0x8000) &&
|
|
- (--worklimit >= 0)) {
|
|
|
|
|
|
+ worklimit > 0) {
|
|
|
|
+ worklimit--;
|
|
if (rx_status & 0x4000) { /* Error, update stats. */
|
|
if (rx_status & 0x4000) { /* Error, update stats. */
|
|
short error = rx_status & 0x3800;
|
|
short error = rx_status & 0x3800;
|
|
dev->stats.rx_errors++;
|
|
dev->stats.rx_errors++;
|