Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2010 23:19:31 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213436 - head/sys/dev/usb/net
Message-ID:  <201010042319.o94NJVG5030736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010042319.o94NJVG5030736>