Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb PR/51574: You can't always get what you want, bu...
details: https://anonhg.NetBSD.org/src/rev/74e886df47e8
branches: trunk
changeset: 348634:74e886df47e8
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 31 12:18:10 2016 +0000
description:
PR/51574: You can't always get what you want, but if you try sometime..
Remove unreachable code.
diffstat:
sys/dev/usb/uhso.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (32 lines):
diff -r 6af5550e6293 -r 74e886df47e8 sys/dev/usb/uhso.c
--- a/sys/dev/usb/uhso.c Mon Oct 31 10:38:25 2016 +0000
+++ b/sys/dev/usb/uhso.c Mon Oct 31 12:18:10 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhso.c,v 1.22 2016/07/07 06:55:42 msaitoh Exp $ */
+/* $NetBSD: uhso.c,v 1.23 2016/10/31 12:18:10 christos Exp $ */
/*-
* Copyright (c) 2009 Iain Hibbert
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhso.c,v 1.22 2016/07/07 06:55:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhso.c,v 1.23 2016/10/31 12:18:10 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2164,13 +2164,6 @@
*mb = m;
break;
}
- } else if (want > got) {
- aprint_error_ifnet(ifp, "bad IP packet (len=%zd)\n",
- want);
-
- ifp->if_ierrors++;
- m_freem(m);
- break;
}
m_set_rcvif(m, ifp);
Home |
Main Index |
Thread Index |
Old Index