diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-02-12 05:07:53 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-02-12 05:07:53 +0000 |
commit | 53f4d96846f5acf849208a56c9f9bcf8ab117f29 (patch) | |
tree | 8628c6c656d8a3d52324574e11f3aad179f325e0 /sys/dev | |
parent | 8b9e25f71a18f7f696e33998bf0b7366d5f114fe (diff) |
KNF.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/uhub.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/usbdi.c | 4 |
2 files changed, 4 insertions, 4 deletions
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); } |