Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Simplify - no functional change.



details:   https://anonhg.NetBSD.org/src/rev/fa6627d8e6e3
branches:  nick-nhusb
changeset: 334125:fa6627d8e6e3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 02 22:16:38 2015 +0000

description:
Simplify - no functional change.

diffstat:

 sys/dev/usb/ehci.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r ba2b7a3af5d1 -r fa6627d8e6e3 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Mon Mar 02 21:52:02 2015 +0000
+++ b/sys/dev/usb/ehci.c        Mon Mar 02 22:16:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.35 2015/03/02 21:52:02 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.36 2015/03/02 22:16:38 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.35 2015/03/02 21:52:02 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.36 2015/03/02 22:16:38 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -2767,7 +2767,7 @@
        int len, curlen, mps;
        int i, tog;
        int pages, pageoffs;
-       bus_size_t curoffs;
+       size_t curoffs;
        vaddr_t va, va_offs;
        usb_dma_t *dma = &xfer->ux_dmabuf;
        uint16_t flags = xfer->ux_flags;
@@ -2814,7 +2814,7 @@
                        KASSERT(curlen != 0);
                }
                USBHIST_LOG(ehcidebug, "len=%d curlen=%d curoffs=%zu",
-                       len, curlen, (size_t)curoffs, 0);
+                       len, curlen, curoffs, 0);
 
                /*
                 * Allocate another transfer if there's more data left,
@@ -2857,7 +2857,7 @@
                cur->len = curlen;
 
                USBHIST_LOG(ehcidebug, "cbp=0x%08zx end=0x%08zx",
-                   (size_t)curoffs, (size_t)(curoffs + curlen), 0, 0);
+                   curoffs, curoffs + curlen, 0, 0);
 
                /*
                 * adjust the toggle based on the number of packets in this



Home | Main Index | Thread Index | Old Index