diff options
author | archie <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
commit | 60d13c7a9dd18f720483338ebef03609492ca98c (patch) | |
tree | 5709d8cdab99e3c1cb9ae7c2117627c1031fdf39 /sys/gnu/i386/isa/dgm.c | |
parent | 2f8d013d96c256b3a48e227aab238e53eb9304cf (diff) | |
download | FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.zip FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.tar.gz |
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Diffstat (limited to 'sys/gnu/i386/isa/dgm.c')
-rw-r--r-- | sys/gnu/i386/isa/dgm.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/gnu/i386/isa/dgm.c b/sys/gnu/i386/isa/dgm.c index eca931a..8b0ca1f 100644 --- a/sys/gnu/i386/isa/dgm.c +++ b/sys/gnu/i386/isa/dgm.c @@ -1,5 +1,5 @@ /*- - * $Id: dgm.c,v 1.4 1998/08/16 01:21:49 bde Exp $ + * $Id: dgm.c,v 1.5 1998/08/23 08:26:40 bde Exp $ * * This driver and the associated header files support the ISA PC/Xem * Digiboards. Its evolutionary roots are described below. @@ -381,9 +381,7 @@ dgmprobe(dev) struct isa_device *dev; { struct dgm_softc *sc= &dgm_softc[dev->id_unit]; - int i, v, t; - u_char *mem; - int addr; + int i, v; int unit=dev->id_unit; sc->unit=dev->id_unit; @@ -449,14 +447,9 @@ dgmattach(dev) int addr; struct dgm_p *port; volatile struct board_chan *bc; - struct global_data *gd; int shrinkmem; - int nfails; - ushort *pstat; int lowwater; static int nports=0; - char ch; - int stuff; if(sc->status!=ENABLED) { DPRINT2(DB_EXCEPT,"dbg%d: try to attach a disabled card\n",unit); @@ -1087,7 +1080,6 @@ dgmpoll(unit_c) int rhead, rtail; int whead, wtail; int size; - int c=0; u_char *ptr; int ocount; int ibuf_full,obuf_full; @@ -1316,7 +1308,6 @@ dgmpoll(unit_c) setwin(sc,0); } } - end_of_buffer: ; } bc->idata=1; /* require event on incoming data */ @@ -1761,7 +1752,6 @@ dgmparam(tp, t) struct termios *t; { int dev=tp->t_dev; - int mynor=minor(dev); int unit=MINOR_TO_UNIT(dev); int pnum=MINOR_TO_PORT(dev); struct dgm_softc *sc=&dgm_softc[unit]; @@ -1772,7 +1762,7 @@ dgmparam(tp, t) int mval; int iflag; int hflow; - int s,cs; + int cs; BoardMemWinState ws=bmws_get(); @@ -1975,7 +1965,6 @@ dgmstop(tp, rw) struct dgm_p *port; struct dgm_softc *sc; volatile struct board_chan *bc; - int head; int s; BoardMemWinState ws=bmws_get(); |