Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Fix misplaced parenthesis. From henning.petersen@t-onli...
details: https://anonhg.NetBSD.org/src/rev/37d60303e3ca
branches: trunk
changeset: 763741:37d60303e3ca
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Sat Apr 02 08:11:31 2011 +0000
description:
Fix misplaced parenthesis. From henning.petersen%t-online.de@localhost, thanks.
diffstat:
sys/dev/i2c/pcf8583.c | 6 +++---
sys/dev/ic/atw.c | 6 +++---
sys/dev/pci/if_vte.c | 6 +++---
sys/dev/pci/if_wpi.c | 6 +++---
sys/dev/scsipi/if_se.c | 6 +++---
sys/kern/kern_module.c | 6 +++---
sys/kern/subr_autoconf.c | 6 +++---
sys/net/if_ppp.c | 6 +++---
sys/net80211/ieee80211_ioctl.c | 6 +++---
9 files changed, 27 insertions(+), 27 deletions(-)
diffs (243 lines):
diff -r 9fa137c85b6d -r 37d60303e3ca sys/dev/i2c/pcf8583.c
--- a/sys/dev/i2c/pcf8583.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/dev/i2c/pcf8583.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcf8583.c,v 1.12 2009/12/12 14:44:10 tsutsui Exp $ */
+/* $NetBSD: pcf8583.c,v 1.13 2011/04/02 08:20:07 mbalmer Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcf8583.c,v 1.12 2009/12/12 14:44:10 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcf8583.c,v 1.13 2011/04/02 08:20:07 mbalmer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -290,7 +290,7 @@
clock_secs_to_ymdhms(tv->tv_sec, &dt);
- if ((err = pcfrtc_clock_write(sc, &dt, tv->tv_usec / 10000) == 0))
+ if ((err = pcfrtc_clock_write(sc, &dt, tv->tv_usec / 10000)) != 0)
return err;
return (0);
diff -r 9fa137c85b6d -r 37d60303e3ca sys/dev/ic/atw.c
--- a/sys/dev/ic/atw.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/dev/ic/atw.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atw.c,v 1.152 2010/11/13 08:54:23 uebayasi Exp $ */
+/* $NetBSD: atw.c,v 1.153 2011/04/02 08:11:32 mbalmer Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.152 2010/11/13 08:54:23 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.153 2011/04/02 08:11:32 mbalmer Exp $");
#include <sys/param.h>
@@ -3890,7 +3890,7 @@
if ((error = kauth_authorize_network(curlwp->l_cred,
KAUTH_NETWORK_INTERFACE,
KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp,
- (void *)cmd, NULL) != 0))
+ (void *)cmd, NULL)) != 0)
break;
if (!(IEEE80211_FRAG_MIN <= ireq->i_val &&
ireq->i_val <= IEEE80211_FRAG_MAX))
diff -r 9fa137c85b6d -r 37d60303e3ca sys/dev/pci/if_vte.c
--- a/sys/dev/pci/if_vte.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/dev/pci/if_vte.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vte.c,v 1.1 2011/01/26 18:48:13 bouyer Exp $ */
+/* $NetBSD: if_vte.c,v 1.2 2011/04/02 08:11:31 mbalmer Exp $ */
/*
* Copyright (c) 2011 Manuel Bouyer. All rights reserved.
@@ -55,7 +55,7 @@
/* Driver for DM&P Electronics, Inc, Vortex86 RDC R6040 FastEthernet. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vte.c,v 1.1 2011/01/26 18:48:13 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vte.c,v 1.2 2011/04/02 08:11:31 mbalmer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -216,7 +216,7 @@
/* Reset the ethernet controller. */
vte_reset(sc);
- if ((error = vte_dma_alloc(sc) != 0))
+ if ((error = vte_dma_alloc(sc)) != 0)
return;
/* Load station address. */
diff -r 9fa137c85b6d -r 37d60303e3ca sys/dev/pci/if_wpi.c
--- a/sys/dev/pci/if_wpi.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/dev/pci/if_wpi.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wpi.c,v 1.48 2010/11/15 05:57:39 uebayasi Exp $ */
+/* $NetBSD: if_wpi.c,v 1.49 2011/04/02 08:11:31 mbalmer Exp $ */
/*-
* Copyright (c) 2006, 2007
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.48 2010/11/15 05:57:39 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.49 2011/04/02 08:11:31 mbalmer Exp $");
/*
* Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters.
@@ -1147,7 +1147,7 @@
}
/* load firmware image from disk */
- if ((error = firmware_open("if_wpi","iwlwifi-3945.ucode", &fw) != 0)) {
+ if ((error = firmware_open("if_wpi","iwlwifi-3945.ucode", &fw)) != 0) {
aprint_error_dev(sc->sc_dev, "could not read firmware file\n");
goto fail1;
}
diff -r 9fa137c85b6d -r 37d60303e3ca sys/dev/scsipi/if_se.c
--- a/sys/dev/scsipi/if_se.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/dev/scsipi/if_se.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_se.c,v 1.82 2010/07/27 14:04:55 jakllsch Exp $ */
+/* $NetBSD: if_se.c,v 1.83 2011/04/02 08:11:32 mbalmer Exp $ */
/*
* Copyright (c) 1997 Ian W. Dall <ian.dall%dsto.defence.gov.au@localhost>
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.82 2010/07/27 14:04:55 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.83 2011/04/02 08:11:32 mbalmer Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -946,7 +946,7 @@
break;
ifp->if_flags |= IFF_UP;
- if ((error = se_set_media(sc, CMEDIA_AUTOSENSE) != 0))
+ if ((error = se_set_media(sc, CMEDIA_AUTOSENSE)) != 0)
break;
switch (ifa->ifa_addr->sa_family) {
diff -r 9fa137c85b6d -r 37d60303e3ca sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/kern/kern_module.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.76 2011/02/21 09:53:06 pooka Exp $ */
+/* $NetBSD: kern_module.c,v 1.77 2011/04/02 08:11:31 mbalmer Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.76 2011/02/21 09:53:06 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.77 2011/04/02 08:11:31 mbalmer Exp $");
#define _MODULE_INTERNAL
@@ -351,7 +351,7 @@
module_listener_cb, NULL);
__link_set_foreach(mip, modules) {
- if ((rv = module_builtin_add(mip, 1, false) != 0))
+ if ((rv = module_builtin_add(mip, 1, false)) != 0)
module_error("builtin %s failed: %d\n",
(*mip)->mi_name, rv);
}
diff -r 9fa137c85b6d -r 37d60303e3ca sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/kern/subr_autoconf.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.213 2011/02/06 23:25:17 jmcneill Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.214 2011/04/02 08:11:31 mbalmer Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.213 2011/02/06 23:25:17 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.214 2011/04/02 08:11:31 mbalmer Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -275,7 +275,7 @@
for (cfai = &cfattachv[0]; cfai->cfai_name != NULL; cfai++) {
for (j = 0; cfai->cfai_list[j] != NULL; j++) {
if ((error = att_do(cfai->cfai_name,
- cfai->cfai_list[j]) != 0)) {
+ cfai->cfai_list[j])) != 0) {
pr("configure: attachment `%s' "
"of `%s' driver %s failed: %d",
cfai->cfai_list[j]->ca_name,
diff -r 9fa137c85b6d -r 37d60303e3ca sys/net/if_ppp.c
--- a/sys/net/if_ppp.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/net/if_ppp.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ppp.c,v 1.132 2010/08/21 13:19:40 pgoyette Exp $ */
+/* $NetBSD: if_ppp.c,v 1.133 2011/04/02 08:11:32 mbalmer Exp $ */
/* Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp */
/*
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.132 2010/08/21 13:19:40 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.133 2011/04/02 08:11:32 mbalmer Exp $");
#include "ppp.h"
@@ -838,7 +838,7 @@
case SIOCSIFMTU:
if ((error = kauth_authorize_network(l->l_cred,
KAUTH_NETWORK_INTERFACE, KAUTH_REQ_NETWORK_INTERFACE_SETPRIV,
- ifp, (void *)cmd, NULL) != 0))
+ ifp, (void *)cmd, NULL)) != 0)
break;
/*FALLTHROUGH*/
default:
diff -r 9fa137c85b6d -r 37d60303e3ca sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c Sat Apr 02 07:58:30 2011 +0000
+++ b/sys/net80211/ieee80211_ioctl.c Sat Apr 02 08:11:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211_ioctl.c,v 1.54 2009/04/18 14:58:05 tsutsui Exp $ */
+/* $NetBSD: ieee80211_ioctl.c,v 1.55 2011/04/02 08:11:32 mbalmer Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -36,7 +36,7 @@
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_ioctl.c,v 1.35 2005/08/30 14:27:47 avatar Exp $");
#endif
#ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_ioctl.c,v 1.54 2009/04/18 14:58:05 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_ioctl.c,v 1.55 2011/04/02 08:11:32 mbalmer Exp $");
#endif
/*
@@ -2615,7 +2615,7 @@
if ((error = kauth_authorize_network(curlwp->l_cred,
KAUTH_NETWORK_INTERFACE,
KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp, (void *)cmd,
- NULL) != 0))
+ NULL)) != 0)
break;
error = ieee80211_ioctl_set80211(ic, cmd,
(struct ieee80211req *) data);
Home |
Main Index |
Thread Index |
Old Index