From 53f4d96846f5acf849208a56c9f9bcf8ab117f29 Mon Sep 17 00:00:00 2001 From: Masao Uebayashi Date: Thu, 12 Feb 2015 05:07:53 +0000 Subject: KNF. --- sys/dev/usb/uhub.c | 4 ++-- sys/dev/usb/usbdi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 86c722c8748..83ef8a8f0be 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhub.c,v 1.82 2015/01/02 11:58:32 mpi Exp $ */ +/* $OpenBSD: uhub.c,v 1.83 2015/02/12 05:07:52 uebayasi Exp $ */ /* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */ @@ -299,7 +299,7 @@ uhub_attach(struct device *parent, struct device *self, void *aux) struct usbd_port *up = &hub->ports[p]; up->device = NULL; up->parent = dev; - up->portno = p+1; + up->portno = p + 1; if (dev->self_powered) /* Self powered hub, give ports maximum current. */ up->power = USB_MAX_POWER; diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index e203b7e742d..c16055df0b0 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi.c,v 1.79 2015/01/22 10:27:47 mpi Exp $ */ +/* $OpenBSD: usbdi.c,v 1.80 2015/02/12 05:07:52 uebayasi Exp $ */ /* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */ @@ -1110,6 +1110,6 @@ usbd_str(usb_string_descriptor_t *p, int l, const char *s) l -= 2; for (i = 0; s[i] && l > 1; i++, l -= 2) USETW2(p->bString[i], 0, s[i]); - return (2*i+2); + return (2 * i + 2); } -- cgit v1.2.3