Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys fix unused variable warnings
details: https://anonhg.NetBSD.org/src/rev/954815da1bcc
branches: trunk
changeset: 790783:954815da1bcc
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 21:13:15 2013 +0000
description:
fix unused variable warnings
diffstat:
sys/dev/acpi/acpi_verbose.c | 6 ++----
sys/dev/ic/nslm7x.c | 8 ++++----
sys/fs/smbfs/smbfs_node.c | 8 ++++----
3 files changed, 10 insertions(+), 12 deletions(-)
diffs (107 lines):
diff -r 7fe437a5ffbb -r 954815da1bcc sys/dev/acpi/acpi_verbose.c
--- a/sys/dev/acpi/acpi_verbose.c Sun Oct 20 21:12:08 2013 +0000
+++ b/sys/dev/acpi/acpi_verbose.c Sun Oct 20 21:13:15 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_verbose.c,v 1.16 2011/01/03 08:50:23 jruoho Exp $ */
+/* $NetBSD: acpi_verbose.c,v 1.17 2013/10/20 21:13:15 christos Exp $ */
/*-
* Copyright (c) 2003, 2007, 2010 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_verbose.c,v 1.16 2011/01/03 08:50:23 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_verbose.c,v 1.17 2013/10/20 21:13:15 christos Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -172,7 +172,6 @@
static void
acpi_print_madt(struct acpi_softc *sc)
{
- ACPI_TABLE_MADT *madt;
ACPI_STATUS rv;
rv = acpi_madt_map();
@@ -183,7 +182,6 @@
if (madt_header == NULL)
return;
- madt = (ACPI_TABLE_MADT *)madt_header;
acpi_madt_walk(acpi_print_madt_callback, sc);
}
diff -r 7fe437a5ffbb -r 954815da1bcc sys/dev/ic/nslm7x.c
--- a/sys/dev/ic/nslm7x.c Sun Oct 20 21:12:08 2013 +0000
+++ b/sys/dev/ic/nslm7x.c Sun Oct 20 21:13:15 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nslm7x.c,v 1.59 2012/01/21 15:50:13 jakllsch Exp $ */
+/* $NetBSD: nslm7x.c,v 1.60 2013/10/20 21:13:15 christos Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.59 2012/01/21 15:50:13 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.60 2013/10/20 21:13:15 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1819,7 +1819,7 @@
wb_match(struct lm_softc *sc)
{
const char *model = NULL;
- int banksel, vendid, devid, cf_flags;
+ int banksel, vendid, cf_flags;
aprint_naive("\n");
aprint_normal("\n");
@@ -1835,7 +1835,7 @@
/* Read device/chip ID */
lm_generic_banksel(sc, WB_BANKSEL_B0);
- devid = (*sc->lm_readreg)(sc, LMD_CHIPID);
+ (void)(*sc->lm_readreg)(sc, LMD_CHIPID);
sc->chipid = (*sc->lm_readreg)(sc, WB_BANK0_CHIPID);
lm_generic_banksel(sc, banksel);
cf_flags = device_cfdata(sc->sc_dev)->cf_flags;
diff -r 7fe437a5ffbb -r 954815da1bcc sys/fs/smbfs/smbfs_node.c
--- a/sys/fs/smbfs/smbfs_node.c Sun Oct 20 21:12:08 2013 +0000
+++ b/sys/fs/smbfs/smbfs_node.c Sun Oct 20 21:13:15 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_node.c,v 1.49 2012/11/29 11:58:49 nakayama Exp $ */
+/* $NetBSD: smbfs_node.c,v 1.50 2013/10/20 21:13:15 christos Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.49 2012/11/29 11:58:49 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.50 2013/10/20 21:13:15 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -99,7 +99,7 @@
struct vattr vattr;
struct smbmount *smp = VFSTOSMBFS(mp);
struct smbnode_hashhead *nhpp;
- struct smbnode *np, *np2, *dnp;
+ struct smbnode *np, *np2;
struct vnode *vp;
u_long hashval;
int error;
@@ -121,8 +121,8 @@
return (error);
}
- dnp = dvp ? VTOSMB(dvp) : NULL;
#ifdef DIAGNOSTIC
+ struct smbnode *dnp = dvp ? VTOSMB(dvp) : NULL;
if (dnp == NULL && dvp != NULL)
panic("smbfs_node_alloc: dead parent vnode %p", dvp);
#endif
Home |
Main Index |
Thread Index |
Old Index