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 KNF (on the right branch this time)
details: https://anonhg.NetBSD.org/src/rev/b0ca5d2c4c31
branches: nick-nhusb
changeset: 334434:b0ca5d2c4c31
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Mar 13 07:11:01 2016 +0000
description:
KNF (on the right branch this time)
diffstat:
sys/dev/usb/ohci.c | 8 ++++----
sys/dev/usb/uaudio.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r a80834b8e471 -r b0ca5d2c4c31 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Wed Mar 09 08:00:22 2016 +0000
+++ b/sys/dev/usb/ohci.c Sun Mar 13 07:11:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.254.2.57 2016/03/09 08:00:22 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.254.2.58 2016/03/13 07:11:01 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.57 2016/03/09 08:00:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.58 2016/03/13 07:11:01 skrll Exp $");
#include "opt_usb.h"
@@ -477,7 +477,7 @@
return NULL;
mutex_enter(&sc->sc_lock);
- for(i = 0; i < OHCI_STD_CHUNK; i++) {
+ for (i = 0; i < OHCI_STD_CHUNK; i++) {
offs = i * OHCI_STD_SIZE;
std = KERNADDR(&dma, offs);
std->physaddr = DMAADDR(&dma, offs);
@@ -775,7 +775,7 @@
if (err)
return NULL;
mutex_enter(&sc->sc_lock);
- for(i = 0; i < OHCI_SITD_CHUNK; i++) {
+ for (i = 0; i < OHCI_SITD_CHUNK; i++) {
offs = i * OHCI_SITD_SIZE;
sitd = KERNADDR(&dma, offs);
sitd->physaddr = DMAADDR(&dma, offs);
diff -r a80834b8e471 -r b0ca5d2c4c31 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c Wed Mar 09 08:00:22 2016 +0000
+++ b/sys/dev/usb/uaudio.c Sun Mar 13 07:11:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uaudio.c,v 1.140.2.12 2015/12/28 09:26:33 skrll Exp $ */
+/* $NetBSD: uaudio.c,v 1.140.2.13 2016/03/13 07:11:01 skrll Exp $ */
/*
* Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.140.2.12 2015/12/28 09:26:33 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.140.2.13 2016/03/13 07:11:01 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -2974,7 +2974,7 @@
* Transfer data from channel buffer to upper layer buffer, taking
* care of wrapping the upper layer buffer.
*/
- for(i = 0; i < UAUDIO_NFRAMES; i++) {
+ for (i = 0; i < UAUDIO_NFRAMES; i++) {
frsize = cb->sizes[i];
n = min(frsize, ch->end - ch->cur);
memcpy(ch->cur, cb->buffer + cb->offsets[i], n);
Home |
Main Index |
Thread Index |
Old Index