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 Another USBD_NOMEM rather than ENOMEM where...
details: https://anonhg.NetBSD.org/src/rev/786f6172ea1b
branches: nick-nhusb
changeset: 334137:786f6172ea1b
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Mar 06 14:08:39 2015 +0000
description:
Another USBD_NOMEM rather than ENOMEM where appropriate.
Pointed out by Takahiro HAYASHI. Thanks.
diffstat:
sys/dev/usb/usbdi.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 45c18db02543 -r 786f6172ea1b sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Fri Mar 06 12:54:29 2015 +0000
+++ b/sys/dev/usb/usbdi.c Fri Mar 06 14:08:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.162.2.17 2015/03/06 12:54:29 skrll Exp $ */
+/* $NetBSD: usbdi.c,v 1.162.2.18 2015/03/06 14:08:39 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.17 2015/03/06 12:54:29 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.162.2.18 2015/03/06 14:08:39 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1081,7 +1081,7 @@
if (UGETW(req->wLength) != 0) {
void *buf = usbd_alloc_buffer(xfer, UGETW(req->wLength));
if (buf == NULL) {
- err = ENOMEM;
+ err = USBD_NOMEM;
goto bad;
}
}
Home |
Main Index |
Thread Index |
Old Index