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 Use USBD_NOMEM rather than ENOMEM where app...



details:   https://anonhg.NetBSD.org/src/rev/45c18db02543
branches:  nick-nhusb
changeset: 334136:45c18db02543
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Mar 06 12:54:29 2015 +0000

description:
Use USBD_NOMEM rather than ENOMEM where appropriate.

diffstat:

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

diffs (27 lines):

diff -r af6f23482cfe -r 45c18db02543 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Fri Mar 06 12:52:51 2015 +0000
+++ b/sys/dev/usb/usbdi.c       Fri Mar 06 12:54:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.162.2.16 2015/03/06 12:52:51 skrll Exp $   */
+/*     $NetBSD: usbdi.c,v 1.162.2.17 2015/03/06 12:54:29 skrll Exp $   */
 
 /*
  * Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.16 2015/03/06 12:52:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.17 2015/03/06 12:54:29 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -224,7 +224,7 @@
        }
        void *buf = usbd_alloc_buffer(xfer, len);
        if (buf == NULL) {
-               err = ENOMEM;
+               err = USBD_NOMEM;
                goto bad2;
        }
 



Home | Main Index | Thread Index | Old Index