Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb KNF
details: https://anonhg.NetBSD.org/src/rev/9b93f8b75349
branches: trunk
changeset: 356963:9b93f8b75349
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Oct 22 14:13:40 2017 +0000
description:
KNF
diffstat:
sys/dev/usb/usbdi_util.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 574f6fa720c9 -r 9b93f8b75349 sys/dev/usb/usbdi_util.c
--- a/sys/dev/usb/usbdi_util.c Sun Oct 22 14:07:03 2017 +0000
+++ b/sys/dev/usb/usbdi_util.c Sun Oct 22 14:13:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi_util.c,v 1.68 2017/10/10 11:43:26 maya Exp $ */
+/* $NetBSD: usbdi_util.c,v 1.69 2017/10/22 14:13:40 skrll Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi_util.c,v 1.68 2017/10/10 11:43:26 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi_util.c,v 1.69 2017/10/22 14:13:40 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -112,7 +112,7 @@
err = usbd_get_desc(dev, UDESC_BOS, confidx,
USB_BOS_DESCRIPTOR_SIZE, d);
if (err)
- return (err);
+ return err;
if (d->bDescriptorType != UDESC_BOS) {
DPRINTFN(1, "confidx=%d, bad desc len=%d type=%d",
confidx, d->bLength, d->bDescriptorType, 0);
@@ -135,8 +135,8 @@
{
USBHIST_FUNC(); USBHIST_CALLED(usbdebug);
- return (usbd_get_desc(dev, UDESC_DEVICE,
- 0, USB_DEVICE_DESCRIPTOR_SIZE, d));
+ return usbd_get_desc(dev, UDESC_DEVICE,
+ 0, USB_DEVICE_DESCRIPTOR_SIZE, d);
}
usbd_status
@@ -212,7 +212,7 @@
USETW2(req.wValue, 0, UR_PST_EXT_PORT_STATUS);
USETW(req.wIndex, port);
USETW(req.wLength, sizeof(*pse));
- return (usbd_do_request(dev, &req, pse));
+ return usbd_do_request(dev, &req, pse);
}
usbd_status
Home |
Main Index |
Thread Index |
Old Index