Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Remove bogus cast. The LHS type is smaller, so l...



details:   https://anonhg.NetBSD.org/src/rev/11259a934c9b
branches:  trunk
changeset: 790983:11259a934c9b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Oct 29 16:10:49 2013 +0000

description:
Remove bogus cast. The LHS type is smaller, so let the compiler decide
on the correct (unsigned type).

diffstat:

 sys/dev/usb/if_axen.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e3b8bde64162 -r 11259a934c9b sys/dev/usb/if_axen.c
--- a/sys/dev/usb/if_axen.c     Tue Oct 29 16:02:15 2013 +0000
+++ b/sys/dev/usb/if_axen.c     Tue Oct 29 16:10:49 2013 +0000
@@ -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 @@
        }
                
        /* 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;



Home | Main Index | Thread Index | Old Index