summaryrefslogtreecommitdiffstats
path: root/sys/gnu/i386
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
committerarchie <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
commit60d13c7a9dd18f720483338ebef03609492ca98c (patch)
tree5709d8cdab99e3c1cb9ae7c2117627c1031fdf39 /sys/gnu/i386
parent2f8d013d96c256b3a48e227aab238e53eb9304cf (diff)
downloadFreeBSD-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')
-rw-r--r--sys/gnu/i386/isa/dgb.c13
-rw-r--r--sys/gnu/i386/isa/dgm.c17
2 files changed, 6 insertions, 24 deletions
diff --git a/sys/gnu/i386/isa/dgb.c b/sys/gnu/i386/isa/dgb.c
index aac2725..7aeb258 100644
--- a/sys/gnu/i386/isa/dgb.c
+++ b/sys/gnu/i386/isa/dgb.c
@@ -1,5 +1,5 @@
/*-
- * dgb.c $Id: dgb.c,v 1.39 1998/08/16 01:21:49 bde Exp $
+ * dgb.c $Id: dgb.c,v 1.40 1998/08/23 08:26:39 bde Exp $
*
* Digiboard driver.
*
@@ -407,10 +407,8 @@ dgbprobe(dev)
struct isa_device *dev;
{
struct dgb_softc *sc= &dgb_softc[dev->id_unit];
- int i, v, t;
+ int i, v;
u_long win_size; /* size of vizible memory window */
- u_char *mem;
- int addr;
int unit=dev->id_unit;
sc->unit=dev->id_unit;
@@ -525,7 +523,6 @@ dgbattach(dev)
int addr;
struct dgb_p *port;
volatile struct board_chan *bc;
- struct global_data *gd;
int shrinkmem;
int nfails;
ushort *pstat;
@@ -1283,7 +1280,6 @@ dgbpoll(unit_c)
int rhead, rtail;
int whead, wtail;
int size;
- int c=0;
u_char *ptr;
int ocount;
int ibuf_full,obuf_full;
@@ -1512,7 +1508,6 @@ dgbpoll(unit_c)
setwin(sc,0);
}
}
- end_of_buffer: ;
}
bc->idata=1; /* require event on incoming data */
@@ -1957,7 +1952,6 @@ dgbparam(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 dgb_softc *sc=&dgb_softc[unit];
@@ -1968,7 +1962,7 @@ dgbparam(tp, t)
int mval;
int iflag;
int hflow;
- int s,cs;
+ int cs;
BoardMemWinState ws=bmws_get();
@@ -2170,7 +2164,6 @@ dgbstop(tp, rw)
struct dgb_p *port;
struct dgb_softc *sc;
volatile struct board_chan *bc;
- int head;
int s;
BoardMemWinState ws=bmws_get();
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();
OpenPOWER on IntegriCloud