Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb ehci_device_isoc_init() returns errno not usbd_e...
details: https://anonhg.NetBSD.org/src/rev/7b0f5fba51ba
branches: trunk
changeset: 372629:7b0f5fba51ba
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Dec 13 21:25:10 2022 +0000
description:
ehci_device_isoc_init() returns errno not usbd_error; remove blank line
in ehci_device_fs_isoc_init() to match ehci_device_isoc_init()
diffstat:
sys/dev/usb/ehci.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 66f1f02a124e -r 7b0f5fba51ba sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Tue Dec 13 21:16:38 2022 +0000
+++ b/sys/dev/usb/ehci.c Tue Dec 13 21:25:10 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.313 2022/12/13 21:13:16 jakllsch Exp $ */
+/* $NetBSD: ehci.c,v 1.314 2022/12/13 21:25:10 jakllsch Exp $ */
/*
* Copyright (c) 2004-2012,2016,2020 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.313 2022/12/13 21:13:16 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.314 2022/12/13 21:25:10 jakllsch Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -4259,7 +4259,6 @@
if (i > 16 || i == 0) {
/* Spec page 271 says intervals > 16 are invalid */
DPRINTF("bInterval %jd invalid", i, 0, 0, 0);
-
return EINVAL;
}
@@ -4620,7 +4619,7 @@
if (i > 16 || i == 0) {
/* Spec page 271 says intervals > 16 are invalid */
DPRINTF("bInterval %jd invalid", i, 0, 0, 0);
- return USBD_INVAL;
+ return EINVAL;
}
ufrperframe = uimax(1, USB_UFRAMES_PER_FRAME / (1 << (i - 1)));
Home |
Main Index |
Thread Index |
Old Index