Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/iomd struct lmcaudio_softc.iobase was unused ot...



details:   https://anonhg.NetBSD.org/src/rev/fca57b012e48
branches:  trunk
changeset: 532846:fca57b012e48
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Jun 16 12:38:11 2002 +0000

description:
struct lmcaudio_softc.iobase was unused other than to initialise it.  G/C it.
This also means that the "aux" parameter to lmcaudio_attach is unused.

diffstat:

 sys/arch/arm/iomd/lmcaudio.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 2b3c4bda156b -r fca57b012e48 sys/arch/arm/iomd/lmcaudio.c
--- a/sys/arch/arm/iomd/lmcaudio.c      Sun Jun 16 12:36:42 2002 +0000
+++ b/sys/arch/arm/iomd/lmcaudio.c      Sun Jun 16 12:38:11 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lmcaudio.c,v 1.5 2002/04/10 19:35:24 thorpej Exp $     */
+/*     $NetBSD: lmcaudio.c,v 1.6 2002/06/16 12:38:11 bjh21 Exp $       */
 
 /*
  * Copyright (c) 1996, Danny C Tsen.
@@ -90,7 +90,6 @@
 
 struct lmcaudio_softc {
        struct device device;
-       int iobase;
 
        int open;
 };
@@ -205,11 +204,8 @@
        struct device *self;
        void *aux;
 {
-       struct mainbus_attach_args *mb = aux;
        struct lmcaudio_softc *sc = (void *)self;
 
-       sc->iobase = mb->mb_iobase;
-
        sc->open = 0;
        ag.in_progress = 0;
 



Home | Main Index | Thread Index | Old Index