Module Name: src
Committed By: skrll
Date: Fri Mar 6 12:54:29 UTC 2015
Modified Files:
src/sys/dev/usb [nick-nhusb]: usbdi.c
Log Message:
Use USBD_NOMEM rather than ENOMEM where appropriate.
To generate a diff of this commit:
cvs rdiff -u -r1.162.2.16 -r1.162.2.17 src/sys/dev/usb/usbdi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/usbdi.c
diff -u src/sys/dev/usb/usbdi.c:1.162.2.16 src/sys/dev/usb/usbdi.c:1.162.2.17
--- src/sys/dev/usb/usbdi.c:1.162.2.16 Fri Mar 6 12:52:51 2015
+++ src/sys/dev/usb/usbdi.c Fri Mar 6 12:54:29 2015
@@ -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 @@ usbd_open_pipe_intr(usbd_interface_handl
}
void *buf = usbd_alloc_buffer(xfer, len);
if (buf == NULL) {
- err = ENOMEM;
+ err = USBD_NOMEM;
goto bad2;
}