Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys KNF. Remove ( ) from return statements.
details: https://anonhg.NetBSD.org/src/rev/ddeb4db989d3
branches: nick-nhusb
changeset: 334076:ddeb4db989d3
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Dec 05 09:37:48 2014 +0000
description:
KNF. Remove ( ) from return statements.
diffstat:
sys/arch/arm/at91/at91ohci.c | 8 +-
sys/arch/arm/ep93xx/epohci.c | 6 +-
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c | 6 +-
sys/arch/hpcmips/dev/plumohci.c | 16 +-
sys/arch/i386/pci/gcscehci.c | 8 +-
sys/arch/mips/adm5120/dev/ahci.c | 14 +-
sys/arch/mips/alchemy/dev/ohci_aubus.c | 8 +-
sys/arch/playstation2/dev/ohci_sbus.c | 16 +-
sys/dev/cardbus/ehci_cardbus.c | 12 +-
sys/dev/cardbus/ohci_cardbus.c | 12 +-
sys/dev/cardbus/uhci_cardbus.c | 12 +-
sys/dev/ic/sl811hs.c | 6 +-
sys/dev/pci/uhci_pci.c | 12 +-
sys/dev/usb/auvitek_dtv.c | 6 +-
sys/dev/usb/ehci.c | 102 +++++-----
sys/dev/usb/hid.c | 36 ++--
sys/dev/usb/if_atu.c | 26 +-
sys/dev/usb/if_aue.c | 84 ++++----
sys/dev/usb/if_cue.c | 80 ++++----
sys/dev/usb/if_udav.c | 104 ++++++------
sys/dev/usb/if_upl.c | 52 +++---
sys/dev/usb/if_url.c | 92 +++++-----
sys/dev/usb/if_urtw.c | 194 +++++++++++-----------
sys/dev/usb/if_urtwn.c | 140 ++++++++--------
sys/dev/usb/motg.c | 46 ++--
sys/dev/usb/ohci.c | 114 ++++++------
sys/dev/usb/stuirda.c | 16 +-
sys/dev/usb/u3g.c | 46 ++--
sys/dev/usb/ubsa_common.c | 14 +-
sys/dev/usb/ucom.c | 82 ++++----
sys/dev/usb/ucycom.c | 62 +++---
sys/dev/usb/udsbr.c | 16 +-
sys/dev/usb/uftdi.c | 36 ++--
sys/dev/usb/ugen.c | 284 ++++++++++++++++----------------
sys/dev/usb/ugensa.c | 10 +-
sys/dev/usb/uhci.c | 130 +++++++-------
sys/dev/usb/uhid.c | 78 ++++----
sys/dev/usb/uhidev.c | 24 +-
sys/dev/usb/uhmodem.c | 30 +-
sys/dev/usb/uhub.c | 18 +-
sys/dev/usb/uipaq.c | 10 +-
sys/dev/usb/uirda.c | 72 ++++----
sys/dev/usb/ukbd.c | 42 ++--
sys/dev/usb/ulpt.c | 38 ++--
sys/dev/usb/umass.c | 32 +-
sys/dev/usb/umass_isdata.c | 30 +-
sys/dev/usb/umass_quirks.c | 14 +-
sys/dev/usb/umct.c | 18 +-
sys/dev/usb/umodem_common.c | 24 +-
sys/dev/usb/ums.c | 20 +-
sys/dev/usb/uplcom.c | 46 ++--
sys/dev/usb/urio.c | 50 ++--
sys/dev/usb/usb.c | 70 ++++----
sys/dev/usb/usb_mem.c | 18 +-
sys/dev/usb/usb_quirks.c | 6 +-
sys/dev/usb/usb_subr.c | 134 +++++++-------
sys/dev/usb/usbdi.c | 128 +++++++-------
sys/dev/usb/usbdi_util.c | 72 ++++----
sys/dev/usb/usbroothub.c | 24 +-
sys/dev/usb/uscanner.c | 52 +++---
sys/dev/usb/usscanner.c | 10 +-
sys/dev/usb/ustir.c | 12 +-
sys/dev/usb/utoppy.c | 138 ++++++++--------
sys/dev/usb/uvisor.c | 18 +-
sys/dev/usb/xhci.c | 20 +-
sys/rump/dev/lib/libugenhc/ugenhc.c | 18 +-
66 files changed, 1587 insertions(+), 1587 deletions(-)
diffs (truncated from 12410 to 300 lines):
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/arm/at91/at91ohci.c
--- a/sys/arch/arm/at91/at91ohci.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/arm/at91/at91ohci.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,5 +1,5 @@
-/* $Id: at91ohci.c,v 1.5.28.2 2014/12/03 12:52:05 skrll Exp $ */
-/* $NetBSD: at91ohci.c,v 1.5.28.2 2014/12/03 12:52:05 skrll Exp $ */
+/* $Id: at91ohci.c,v 1.5.28.3 2014/12/05 09:37:48 skrll Exp $ */
+/* $NetBSD: at91ohci.c,v 1.5.28.3 2014/12/05 09:37:48 skrll Exp $ */
/*-
* Copyright (c) 2007 Embedtronics Oy.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91ohci.c,v 1.5.28.2 2014/12/03 12:52:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91ohci.c,v 1.5.28.3 2014/12/05 09:37:48 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -83,7 +83,7 @@
{
/* AT91X builtin OHCI module */
if (strcmp(match->cf_name, "ohci") == 0 && strcmp(match->cf_atname, "at91ohci") == 0)
- return (2);
+ return 2;
return(0);
}
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/arm/ep93xx/epohci.c
--- a/sys/arch/arm/ep93xx/epohci.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/arm/ep93xx/epohci.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epohci.c,v 1.7.14.2 2014/12/03 12:52:05 skrll Exp $ */
+/* $NetBSD: epohci.c,v 1.7.14.3 2014/12/05 09:37:48 skrll Exp $ */
/*-
* Copyright (c) 2004 Jesse Off
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epohci.c,v 1.7.14.2 2014/12/03 12:52:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epohci.c,v 1.7.14.3 2014/12/05 09:37:48 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -79,7 +79,7 @@
{
/* EP93xx builtin OHCI module */
- return (1);
+ return 1;
}
void
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/arm/s3c2xx0/ohci_s3c24x0.c
--- a/sys/arch/arm/s3c2xx0/ohci_s3c24x0.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/arm/s3c2xx0/ohci_s3c24x0.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci_s3c24x0.c,v 1.8.30.2 2014/12/03 12:52:05 skrll Exp $ */
+/* $NetBSD: ohci_s3c24x0.c,v 1.8.30.3 2014/12/05 09:37:49 skrll Exp $ */
/* derived from ohci_pci.c */
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci_s3c24x0.c,v 1.8.30.2 2014/12/03 12:52:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci_s3c24x0.c,v 1.8.30.3 2014/12/05 09:37:49 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -137,5 +137,5 @@
int
ohci_ssio_detach(device_t self, int flags)
{
- return (0);
+ return 0;
}
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/hpcmips/dev/plumohci.c
--- a/sys/arch/hpcmips/dev/plumohci.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/hpcmips/dev/plumohci.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: plumohci.c,v 1.14.14.2 2014/12/03 12:52:05 skrll Exp $ */
+/* $NetBSD: plumohci.c,v 1.14.14.3 2014/12/05 09:37:49 skrll Exp $ */
/*-
* Copyright (c) 2000 UCHIYAMA Yasushi
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plumohci.c,v 1.14.14.2 2014/12/03 12:52:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plumohci.c,v 1.14.14.3 2014/12/05 09:37:49 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -124,7 +124,7 @@
{
/* PLUM2 builtin OHCI module */
- return (1);
+ return 1;
}
void
@@ -244,13 +244,13 @@
size, OHCI_PAGE_SIZE, 0, 0,
(bus_addr_t *)(void *)&caddr, &bsh);
if (error)
- return (1);
+ return 1;
pmap_extract(pmap_kernel(), (vaddr_t)caddr, &paddr);
ps = malloc(sizeof(struct plumohci_shm), M_DEVBUF, M_NOWAIT);
if (ps == 0)
- return (1);
+ return 1;
ps->ps_bsh = bsh;
ps->ps_size = segs[0].ds_len = size;
@@ -261,7 +261,7 @@
*rsegs = 1;
- return (0);
+ return 0;
}
void
@@ -301,11 +301,11 @@
*kvap = ps->ps_caddr;
- return (0);
+ return 0;
}
}
- return (1);
+ return 1;
}
void
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/i386/pci/gcscehci.c
--- a/sys/arch/i386/pci/gcscehci.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/i386/pci/gcscehci.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gcscehci.c,v 1.11.2.1 2014/12/03 12:52:05 skrll Exp $ */
+/* $NetBSD: gcscehci.c,v 1.11.2.2 2014/12/05 09:37:49 skrll Exp $ */
/*
* Copyright (c) 2001, 2002, 2007 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gcscehci.c,v 1.11.2.1 2014/12/03 12:52:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gcscehci.c,v 1.11.2.2 2014/12/05 09:37:49 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -82,9 +82,9 @@
PCI_INTERFACE(pa->pa_class) == PCI_INTERFACE_EHCI &&
PCI_VENDOR(pa->pa_id) == PCI_VENDOR_AMD &&
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_AMD_CS5536_EHCI)
- return (10); /* beat ehci_pci */
+ return 10; /* beat ehci_pci */
- return (0);
+ return 0;
}
static void
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/mips/adm5120/dev/ahci.c
--- a/sys/arch/mips/adm5120/dev/ahci.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/mips/adm5120/dev/ahci.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ahci.c,v 1.12.6.10 2014/12/04 08:04:31 skrll Exp $ */
+/* $NetBSD: ahci.c,v 1.12.6.11 2014/12/05 09:37:49 skrll Exp $ */
/*-
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahci.c,v 1.12.6.10 2014/12/04 08:04:31 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahci.c,v 1.12.6.11 2014/12/05 09:37:49 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -234,9 +234,9 @@
struct obio_attach_args *aa = aux;
if (strcmp(aa->oba_name, cf->cf_name) == 0)
- return (1);
+ return 1;
- return (0);
+ return 0;
}
#define REG_READ(o) bus_space_read_4(sc->sc_st, sc->sc_ioh, (o))
@@ -796,7 +796,7 @@
if (!(xfer->ux_rqflags & URQ_REQUEST)) {
/* XXX panic */
printf("ahci_device_ctrl_transfer: not a request\n");
- return (USBD_INVAL);
+ return USBD_INVAL;
}
#endif
@@ -812,7 +812,7 @@
sizeof(usb_device_request_t),
0, &reqdma);
if (err)
- return (USBD_NOMEM);
+ return USBD_NOMEM;
/* printf("ep: %p\n",ep); */
};
@@ -1124,7 +1124,7 @@
if (xfer->ux_rqflags & URQ_REQUEST) {
/* XXX panic */
printf("ohci_device_bulk_start: a request\n");
- return (USBD_INVAL);
+ return USBD_INVAL;
}
#endif
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/mips/alchemy/dev/ohci_aubus.c
--- a/sys/arch/mips/alchemy/dev/ohci_aubus.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/mips/alchemy/dev/ohci_aubus.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci_aubus.c,v 1.15.30.2 2014/12/03 12:52:06 skrll Exp $ */
+/* $NetBSD: ohci_aubus.c,v 1.15.30.3 2014/12/05 09:37:49 skrll Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci_aubus.c,v 1.15.30.2 2014/12/03 12:52:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci_aubus.c,v 1.15.30.3 2014/12/05 09:37:49 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -64,9 +64,9 @@
struct aubus_attach_args *aa = aux;
if (strcmp(aa->aa_name, match->cf_name) == 0)
- return (1);
+ return 1;
- return (0);
+ return 0;
}
void
diff -r 3d57fe8f90a5 -r ddeb4db989d3 sys/arch/playstation2/dev/ohci_sbus.c
--- a/sys/arch/playstation2/dev/ohci_sbus.c Thu Dec 04 08:04:31 2014 +0000
+++ b/sys/arch/playstation2/dev/ohci_sbus.c Fri Dec 05 09:37:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci_sbus.c,v 1.11.8.2 2014/12/03 12:52:06 skrll Exp $ */
+/* $NetBSD: ohci_sbus.c,v 1.11.8.3 2014/12/05 09:37:49 skrll Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci_sbus.c,v 1.11.8.2 2014/12/03 12:52:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci_sbus.c,v 1.11.8.3 2014/12/05 09:37:49 skrll Exp $");
#include <sys/param.h>
@@ -110,7 +110,7 @@
ohci_sbus_match(struct device *parent, struct cfdata *cf, void *aux)
{
- return (1);
+ return 1;
}
void
@@ -172,7 +172,7 @@
KDASSERT(sc);
ds = malloc(sizeof(struct ohci_dma_segment), M_DEVBUF, M_NOWAIT);
if (ds == NULL)
- return (1);
+ return 1;
/*
* Allocate DMA Area (IOP DMA Area <-> SIF DMA <-> EE DMA Area)
*/
Home |
Main Index |
Thread Index |
Old Index