Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb usbd_do_request_flags(..., 0, 0, USBD_CONFIG_TIM...



details:   https://anonhg.NetBSD.org/src/rev/d8801c9ffc90
branches:  trunk
changeset: 748967:d8801c9ffc90
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Nov 12 08:28:31 2009 +0000

description:
usbd_do_request_flags(..., 0, 0, USBD_CONFIG_TIMEOUT) is equivalent to
usbd_do_request(...).  Remove an unneeded cast.  No functional changes.

diffstat:

 sys/dev/usb/usbdi_util.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 952ff62738a3 -r d8801c9ffc90 sys/dev/usb/usbdi_util.c
--- a/sys/dev/usb/usbdi_util.c  Thu Nov 12 08:16:50 2009 +0000
+++ b/sys/dev/usb/usbdi_util.c  Thu Nov 12 08:28:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi_util.c,v 1.52 2009/08/16 13:20:40 martin Exp $   */
+/*     $NetBSD: usbdi_util.c,v 1.53 2009/11/12 08:28:31 uebayasi Exp $ */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi_util.c,v 1.52 2009/08/16 13:20:40 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi_util.c,v 1.53 2009/11/12 08:28:31 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -68,8 +68,7 @@
        USETW2(req.wValue, type, index);
        USETW(req.wIndex, 0);
        USETW(req.wLength, len);
-       return (usbd_do_request_flags(dev, &req, desc, 0, 0,
-           USBD_CONFIG_TIMEOUT));
+       return (usbd_do_request(dev, &req, desc));
 }
 
 usbd_status
@@ -440,7 +439,7 @@
                splx(s);
                return (err);
        }
-       error = tsleep((void *)xfer, PZERO | PCATCH, lbl, 0);
+       error = tsleep(xfer, PZERO | PCATCH, lbl, 0);
        splx(s);
        if (error) {
                DPRINTF(("usbd_bulk_transfer: tsleep=%d\n", error));



Home | Main Index | Thread Index | Old Index