Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev appease gcc 4.8



details:   https://anonhg.NetBSD.org/src/rev/25e2d9ef7336
branches:  trunk
changeset: 333632:25e2d9ef7336
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Nov 11 23:08:37 2014 +0000

description:
appease gcc 4.8

diffstat:

 sys/arch/macppc/dev/obio.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 220195e78f46 -r 25e2d9ef7336 sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c        Tue Nov 11 19:41:38 2014 +0000
+++ b/sys/arch/macppc/dev/obio.c        Tue Nov 11 23:08:37 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.40 2013/04/25 11:22:22 macallan Exp $       */
+/*     $NetBSD: obio.c,v 1.41 2014/11/11 23:08:37 macallan Exp $       */
 
 /*-
  * Copyright (C) 1998  Internet Research Institute, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.40 2013/04/25 11:22:22 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.41 2014/11/11 23:08:37 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -627,9 +627,7 @@
        struct sysctlnode node = *rnode;
        struct obio_softc *sc = node.sysctl_data;
        char buf[128];
-       int speed;
 
-       speed = obio_get_cpu_speed(sc);
        snprintf(buf, 128, "%d %d", sc->sc_spd_lo, sc->sc_spd_hi);      
        node.sysctl_data = buf;
        return(sysctl_lookup(SYSCTLFN_CALL(&node)));



Home | Main Index | Thread Index | Old Index