Module Name: src
Committed By: skrll
Date: Tue Jun 23 12:03:29 UTC 2015
Modified Files:
src/sys/dev/usb [nick-nhusb]: ugen.c
Log Message:
KNF
To generate a diff of this commit:
cvs rdiff -u -r1.126.2.9 -r1.126.2.10 src/sys/dev/usb/ugen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/ugen.c
diff -u src/sys/dev/usb/ugen.c:1.126.2.9 src/sys/dev/usb/ugen.c:1.126.2.10
--- src/sys/dev/usb/ugen.c:1.126.2.9 Sat May 9 09:35:20 2015
+++ src/sys/dev/usb/ugen.c Tue Jun 23 12:03:29 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: ugen.c,v 1.126.2.9 2015/05/09 09:35:20 skrll Exp $ */
+/* $NetBSD: ugen.c,v 1.126.2.10 2015/06/23 12:03:29 skrll Exp $ */
/*
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.126.2.9 2015/05/09 09:35:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.126.2.10 2015/06/23 12:03:29 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -461,7 +461,7 @@ ugenopen(dev_t dev, int flag, int mode,
sce->ibuf = NULL;
return EIO;
}
- for(i = 0; i < UGEN_NISOREQS; ++i) {
+ for (i = 0; i < UGEN_NISOREQS; ++i) {
sce->isoreqs[i].sce = sce;
xfer = usbd_alloc_xfer(sc->sc_udev);
if (xfer == NULL)
@@ -469,12 +469,12 @@ ugenopen(dev_t dev, int flag, int mode,
sce->isoreqs[i].xfer = xfer;
tbuf = usbd_alloc_buffer
(xfer, isize * UGEN_NISORFRMS);
- if (tbuf == 0) {
+ if (tbuf == NULL) {
i++;
goto bad;
}
sce->isoreqs[i].dmabuf = tbuf;
- for(j = 0; j < UGEN_NISORFRMS; ++j)
+ for (j = 0; j < UGEN_NISORFRMS; ++j)
sce->isoreqs[i].sizes[j] = isize;
usbd_setup_isoc_xfer
(xfer, sce->pipeh, &sce->isoreqs[i],