Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix missed botch in previous.



details:   https://anonhg.NetBSD.org/src/rev/4f4bb12edf8d
branches:  trunk
changeset: 757087:4f4bb12edf8d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Aug 14 09:57:13 2010 +0000

description:
Fix missed botch in previous.

diffstat:

 sys/dev/usb/if_axe.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r a7ed0a4d8ffb -r 4f4bb12edf8d sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c      Sat Aug 14 09:26:46 2010 +0000
+++ b/sys/dev/usb/if_axe.c      Sat Aug 14 09:57:13 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axe.c,v 1.42 2010/08/14 09:02:17 tsutsui Exp $      */
+/*     $NetBSD: if_axe.c,v 1.43 2010/08/14 09:57:13 tsutsui Exp $      */
 /*     $OpenBSD: if_axe.c,v 1.96 2010/01/09 05:33:08 jsg Exp $ */
 
 /*
@@ -89,7 +89,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.42 2010/08/14 09:02:17 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.43 2010/08/14 09:57:13 tsutsui Exp $");
 
 #if defined(__NetBSD__)
 #include "opt_inet.h"
@@ -978,10 +978,10 @@
                                pktlen = total_len;
                                total_len = 0;
                        } else {
+                               pktlen = rxlen;
+                               rxlen = roundup2(rxlen, 2);
                                total_len -= rxlen;
-                               pktlen = rxlen;
                        }
-                       rxlen = roundup2(rxlen, 2);
 
                } else { /* AX172 */
                        pktlen = rxlen = total_len;



Home | Main Index | Thread Index | Old Index