Module Name: src
Committed By: joerg
Date: Tue Oct 29 16:10:49 UTC 2013
Modified Files:
src/sys/dev/usb: if_axen.c
Log Message:
Remove bogus cast. The LHS type is smaller, so let the compiler decide
on the correct (unsigned type).
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/usb/if_axen.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/if_axen.c
diff -u src/sys/dev/usb/if_axen.c:1.1 src/sys/dev/usb/if_axen.c:1.2
--- src/sys/dev/usb/if_axen.c:1.1 Sat Oct 26 09:16:20 2013
+++ src/sys/dev/usb/if_axen.c Tue Oct 29 16:10:49 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axen.c,v 1.1 2013/10/26 09:16:20 nonaka Exp $ */
+/* $NetBSD: if_axen.c,v 1.2 2013/10/29 16:10:49 joerg Exp $ */
/* $OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $ */
/*
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.1 2013/10/26 09:16:20 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.2 2013/10/29 16:10:49 joerg Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1014,7 +1014,7 @@ axen_rxeof(usbd_xfer_handle xfer, usbd_p
}
/* sanity check */
- if ((int)hdr_offset > total_len) {
+ if (hdr_offset > total_len) {
ifp->if_ierrors++;
usbd_delay_ms(sc->axen_udev, 100);
goto done;