Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc fix unused variable warning
details: https://anonhg.NetBSD.org/src/rev/8e76d42d1114
branches: trunk
changeset: 791237:8e76d42d1114
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 09 21:31:56 2013 +0000
description:
fix unused variable warning
diffstat:
sys/dev/hpc/hpcapm.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
diffs (63 lines):
diff -r d366c97a0553 -r 8e76d42d1114 sys/dev/hpc/hpcapm.c
--- a/sys/dev/hpc/hpcapm.c Sat Nov 09 21:31:45 2013 +0000
+++ b/sys/dev/hpc/hpcapm.c Sat Nov 09 21:31:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcapm.c,v 1.19 2012/10/27 17:18:17 chs Exp $ */
+/* $NetBSD: hpcapm.c,v 1.20 2013/11/09 21:31:56 christos Exp $ */
/*
* Copyright (c) 2000 Takemura Shin
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.19 2012/10/27 17:18:17 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.20 2013/11/09 21:31:56 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_hpcapm.h"
@@ -294,17 +294,11 @@
static void
hpcapm_disconnect(void *scx)
{
- struct apmhpc_softc *sc;
-
- sc = scx;
}
static void
hpcapm_enable(void *scx, int onoff)
{
- struct apmhpc_softc *sc;
-
- sc = scx;
}
static int
@@ -432,26 +426,16 @@
static void
hpcapm_cpu_busy(void *scx)
{
- struct apmhpc_softc *sc;
-
- sc = scx;
}
static void
hpcapm_cpu_idle(void *scx)
{
- struct apmhpc_softc *sc;
-
- sc = scx;
}
static void
hpcapm_get_capabilities(void *scx, u_int *numbatts, u_int *capflags)
{
- struct apmhpc_softc *sc;
-
*numbatts = 0;
*capflags = APM_GLOBAL_STANDBY | APM_GLOBAL_SUSPEND;
-
- sc = scx;
}
Home |
Main Index |
Thread Index |
Old Index