Module Name: src
Committed By: christos
Date: Mon Oct 31 12:18:10 UTC 2016
Modified Files:
src/sys/dev/usb: uhso.c
Log Message:
PR/51574: You can't always get what you want, but if you try sometime..
Remove unreachable code.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/usb/uhso.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/uhso.c
diff -u src/sys/dev/usb/uhso.c:1.22 src/sys/dev/usb/uhso.c:1.23
--- src/sys/dev/usb/uhso.c:1.22 Thu Jul 7 02:55:42 2016
+++ src/sys/dev/usb/uhso.c Mon Oct 31 08:18:10 2016
@@ -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 @@ uhso_ifnet_input(struct ifnet *ifp, stru
*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);