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
details: https://anonhg.NetBSD.org/src/rev/60f539a0fde5
branches: nick-nhusb
changeset: 334621:60f539a0fde5
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Jan 29 15:58:14 2017 +0000
description:
KNF
diffstat:
sys/dev/usb/auvitek_video.c | 6 +++---
sys/dev/usb/if_run.c | 12 ++++++------
sys/dev/usb/slurm.c | 6 +++---
sys/dev/usb/uark.c | 14 +++++++-------
sys/dev/usb/uatp.c | 8 ++++----
sys/dev/usb/uberry.c | 6 +++---
sys/dev/usb/ubsa.c | 6 +++---
sys/dev/usb/udsir.c | 12 ++++++------
sys/dev/usb/uhso.c | 6 +++---
sys/dev/usb/ukyopon.c | 10 +++++-----
sys/dev/usb/usbdi_util.c | 8 ++++----
sys/dev/usb/uslsa.c | 6 +++---
sys/dev/usb/uyap.c | 10 +++++-----
13 files changed, 55 insertions(+), 55 deletions(-)
diffs (truncated from 473 to 300 lines):
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/auvitek_video.c
--- a/sys/dev/usb/auvitek_video.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/auvitek_video.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek_video.c,v 1.6.32.5 2015/12/28 09:26:33 skrll Exp $ */
+/* $NetBSD: auvitek_video.c,v 1.6.32.6 2017/01/29 15:58:14 skrll Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvitek_video.c,v 1.6.32.5 2015/12/28 09:26:33 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek_video.c,v 1.6.32.6 2017/01/29 15:58:14 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -134,7 +134,7 @@
auvitek_video_rescan(sc, NULL, NULL);
- return (sc->sc_videodev != NULL);
+ return sc->sc_videodev != NULL;
}
int
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/if_run.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_run.c,v 1.10.6.12 2016/12/05 10:55:18 skrll Exp $ */
+/* $NetBSD: if_run.c,v 1.10.6.13 2017/01/29 15:58:14 skrll Exp $ */
/* $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */
/*-
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.10.6.12 2016/12/05 10:55:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.10.6.13 2017/01/29 15:58:14 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1110,7 +1110,7 @@
static int
run_efuse_read_2(struct run_softc *sc, uint16_t addr, uint16_t *val)
{
- return (run_efuse_read(sc, addr, val, 2));
+ return run_efuse_read(sc, addr, val, 2);
}
static int
@@ -4100,7 +4100,7 @@
run_read(sc, RT3070_OPT_14, &tmp);
run_write(sc, RT3070_OPT_14, tmp | 1);
- return (0);
+ return 0;
}
static int
@@ -4165,7 +4165,7 @@
run_read(sc, RT3070_OPT_14, &tmp);
run_write(sc, RT3070_OPT_14, tmp | 1);
- return (0);
+ return 0;
}
static int
@@ -4486,7 +4486,7 @@
if (tmp != rf)
run_mcu_cmd(sc, 0x74, (tmp << 8 ) | rf);
- return (0);
+ return 0;
}
static int
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/slurm.c
--- a/sys/dev/usb/slurm.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/slurm.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slurm.c,v 1.1.18.5 2016/07/09 20:25:16 skrll Exp $ */
+/* $NetBSD: slurm.c,v 1.1.18.6 2017/01/29 15:58:14 skrll Exp $ */
/*
* Copyright (c) 2012 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: slurm.c,v 1.1.18.5 2016/07/09 20:25:16 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: slurm.c,v 1.1.18.6 2017/01/29 15:58:14 skrll Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -156,7 +156,7 @@
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev);
- return (rv);
+ return rv;
}
static int
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/uark.c
--- a/sys/dev/usb/uark.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/uark.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uark.c,v 1.6.14.8 2016/12/05 10:55:18 skrll Exp $ */
+/* $NetBSD: uark.c,v 1.6.14.9 2017/01/29 15:58:14 skrll Exp $ */
/* $OpenBSD: uark.c,v 1.13 2009/10/13 19:33:17 pirofti Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uark.c,v 1.6.14.8 2016/12/05 10:55:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uark.c,v 1.6.14.9 2017/01/29 15:58:14 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -229,7 +229,7 @@
sc->sc_dying = 1;
break;
}
- return (rv);
+ return rv;
}
void
@@ -272,7 +272,7 @@
uark_cmd(sc, 3, 0x03);
break;
default:
- return (EINVAL);
+ return EINVAL;
}
if (ISSET(t->c_cflag, CSTOPB))
@@ -317,7 +317,7 @@
}
#endif
- return (0);
+ return 0;
}
void
@@ -363,7 +363,7 @@
err = usbd_do_request(sc->sc_udev, &req, NULL);
if (err)
- return (EIO);
+ return EIO;
- return (0);
+ return 0;
}
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/uatp.c
--- a/sys/dev/usb/uatp.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/uatp.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uatp.c,v 1.10.4.8 2016/12/05 10:55:18 skrll Exp $ */
+/* $NetBSD: uatp.c,v 1.10.4.9 2017/01/29 15:58:14 skrll Exp $ */
/*-
* Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -146,7 +146,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.10.4.8 2016/12/05 10:55:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.10.4.9 2017/01/29 15:58:14 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -834,7 +834,7 @@
product = (delta * ((int) (*multiplier)));
*remainder = (product % ((int) (*divisor)));
- return (product / ((int) (*divisor)));
+ return product / ((int) (*divisor));
}
static int
@@ -2627,7 +2627,7 @@
x_squared = (x * x);
y_squared = (y * y);
- return ((x_squared + y_squared) < threshold);
+ return (x_squared + y_squared) < threshold;
}
static int
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/uberry.c
--- a/sys/dev/usb/uberry.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/uberry.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uberry.c,v 1.9.14.5 2016/12/05 10:55:18 skrll Exp $ */
+/* $NetBSD: uberry.c,v 1.9.14.6 2017/01/29 15:58:14 skrll Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uberry.c,v 1.9.14.5 2016/12/05 10:55:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uberry.c,v 1.9.14.6 2017/01/29 15:58:14 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -209,5 +209,5 @@
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev);
- return (0);
+ return 0;
}
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/ubsa.c
--- a/sys/dev/usb/ubsa.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/ubsa.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ubsa.c,v 1.30.16.9 2016/12/05 10:55:18 skrll Exp $ */
+/* $NetBSD: ubsa.c,v 1.30.16.10 2017/01/29 15:58:14 skrll Exp $ */
/*-
* Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
* All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ubsa.c,v 1.30.16.9 2016/12/05 10:55:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ubsa.c,v 1.30.16.10 2017/01/29 15:58:14 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -341,7 +341,7 @@
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev);
- return (rv);
+ return rv;
}
int
diff -r 58619c2d2dee -r 60f539a0fde5 sys/dev/usb/udsir.c
--- a/sys/dev/usb/udsir.c Sun Jan 29 11:27:52 2017 +0000
+++ b/sys/dev/usb/udsir.c Sun Jan 29 15:58:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udsir.c,v 1.1.14.10 2016/07/09 20:25:16 skrll Exp $ */
+/* $NetBSD: udsir.c,v 1.1.14.11 2017/01/29 15:58:14 skrll Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udsir.c,v 1.1.14.10 2016/07/09 20:25:16 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udsir.c,v 1.1.14.11 2017/01/29 15:58:14 skrll Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -689,7 +689,7 @@
kn->kn_fop = &udsirwrite_filtops;
break;
default:
- return (EINVAL);
+ return EINVAL;
}
kn->kn_hook = sc;
@@ -698,7 +698,7 @@
SLIST_INSERT_HEAD(klist, kn, kn_selnext);
splx(s);
- return (0);
+ return 0;
}
static int
@@ -779,7 +779,7 @@
struct udsir_softc *sc = kn->kn_hook;
kn->kn_data = sc->sc_ur_framelen;
- return (kn->kn_data > 0);
+ return kn->kn_data > 0;
}
static void
@@ -800,7 +800,7 @@
struct udsir_softc *sc = kn->kn_hook;
kn->kn_data = 0;
Home |
Main Index |
Thread Index |
Old Index