Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Remove unused variable.
details: https://anonhg.NetBSD.org/src/rev/2864bb7db011
branches: trunk
changeset: 780275:2864bb7db011
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jul 18 21:55:05 2012 +0000
description:
Remove unused variable.
diffstat:
sys/arch/x86/x86/powernow.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5de9a18fc8c7 -r 2864bb7db011 sys/arch/x86/x86/powernow.c
--- a/sys/arch/x86/x86/powernow.c Wed Jul 18 20:50:40 2012 +0000
+++ b/sys/arch/x86/x86/powernow.c Wed Jul 18 21:55:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: powernow.c,v 1.5 2012/06/02 21:36:42 dsl Exp $ */
+/* $NetBSD: powernow.c,v 1.6 2012/07/18 21:55:05 joerg Exp $ */
/* $OpenBSD: powernow-k8.c,v 1.8 2006/06/16 05:58:50 gwk Exp $ */
/*-
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: powernow.c,v 1.5 2012/06/02 21:36:42 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: powernow.c,v 1.6 2012/07/18 21:55:05 joerg Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -667,7 +667,7 @@
struct powernow_softc *sc = device_private(self);
uint32_t i, maxfid, maxvid;
uint64_t status;
- int len, rv;
+ int rv;
char tmp[6];
sc->sc_state = kmem_alloc(sizeof(*sc->sc_state), KM_SLEEP);
@@ -706,7 +706,7 @@
sc->sc_state->state_table[i].fid,
sc->sc_state->state_table[i].vid));
- len += snprintf(tmp, sizeof(tmp), "%d%s",
+ snprintf(tmp, sizeof(tmp), "%d%s",
sc->sc_state->state_table[i].freq,
i < sc->sc_state->n_states - 1 ? " " : "");
Home |
Main Index |
Thread Index |
Old Index