svn commit: r213436 - head/sys/dev/usb/net
Pyun YongHyeon
yongari at FreeBSD.org
Mon Oct 4 23:19:31 UTC 2010
Author: yongari
Date: Mon Oct 4 23:19:31 2010
New Revision: 213436
URL: http://svn.freebsd.org/changeset/base/213436
Log:
Don't count input error twice. uether_rxbuf() already updated that
counter.
Modified:
head/sys/dev/usb/net/if_axe.c
Modified: head/sys/dev/usb/net/if_axe.c
==============================================================================
--- head/sys/dev/usb/net/if_axe.c Mon Oct 4 23:18:05 2010 (r213435)
+++ head/sys/dev/usb/net/if_axe.c Mon Oct 4 23:19:31 2010 (r213436)
@@ -863,13 +863,12 @@ axe_bulk_read_callback(struct usb_xfer *
err = EINVAL;
break;
}
- err = uether_rxbuf(ue, pc, pos, len);
+ uether_rxbuf(ue, pc, pos, len);
pos += len + (len % 2);
}
- } else {
- err = uether_rxbuf(ue, pc, 0, actlen);
- }
+ } else
+ uether_rxbuf(ue, pc, 0, actlen);
if (err != 0)
ifp->if_ierrors++;
More information about the svn-src-head
mailing list