Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb revert previous. meant to delete that change...



details:   https://anonhg.NetBSD.org/src/rev/806ce68cbf65
branches:  trunk
changeset: 1000272:806ce68cbf65
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 19 04:18:49 2019 +0000

description:
revert previous.  meant to delete that change...

diffstat:

 sys/dev/usb/usb_subr.c |  40 ++--------------------------------------
 1 files changed, 2 insertions(+), 38 deletions(-)

diffs (61 lines):

diff -r a90b84bcb803 -r 806ce68cbf65 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Fri Jul 19 04:17:34 2019 +0000
+++ b/sys/dev/usb/usb_subr.c    Fri Jul 19 04:18:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_subr.c,v 1.233 2019/07/19 04:17:34 mrg Exp $       */
+/*     $NetBSD: usb_subr.c,v 1.234 2019/07/19 04:18:49 mrg Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.233 2019/07/19 04:17:34 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.234 2019/07/19 04:18:49 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -113,42 +113,6 @@
        }
 }
 
-#if 0
-int
-usbd_err_to_errno(usbd_status err)
-{
-       switch (err) {
-       case USBD_NORMAL_COMPLETION:
-       case USBD_IN_PROGRESS:
-               return 0;
-       case USBD_PENDING_REQUESTS:
-       case USBD_NOT_STARTED:
-               return EAGAIN;
-       case USBD_INVAL:
-               return EINVAL;
-       case USBD_NOMEM:
-               return ENOMEM;
-       case USBD_CANCELLED: // ?
-       case USBD_INTERRUPTED:
-               return EINTR;
-       case USBD_BAD_ADDRESS:
-               return EFAULT;
-       case USBD_IN_USE:
-       case USBD_NO_ADDR:
-               return EBUSY;
-       case USBD_TOO_DEEP:
-               return ENOSPC;
-       case USBD_NOT_CONFIGURED:
-               return ENXIO;
-       case USBD_TIMEOUT:
-       case USBD_STALLED:
-               return ETIMEDOUT;
-       default:
-               return EIO;
-       }
-}
-#endif
-
 usbd_status
 usbd_get_string_desc(struct usbd_device *dev, int sindex, int langid,
                     usb_string_descriptor_t *sdesc, int *sizep)



Home | Main Index | Thread Index | Old Index