Module Name:    src
Committed By:   joerg
Date:           Wed Jul 18 21:55:05 UTC 2012

Modified Files:
        src/sys/arch/x86/x86: powernow.c

Log Message:
Remove unused variable.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/x86/powernow.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/powernow.c
diff -u src/sys/arch/x86/x86/powernow.c:1.5 src/sys/arch/x86/x86/powernow.c:1.6
--- src/sys/arch/x86/x86/powernow.c:1.5	Sat Jun  2 21:36:42 2012
+++ src/sys/arch/x86/x86/powernow.c	Wed Jul 18 21:55:05 2012
@@ -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 @@ powernow_k8_init(device_t self)
 	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 @@ powernow_k8_init(device_t self)
 			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 ? " " : "");
 

Reply via email to