summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ed/if_ed.c3
-rw-r--r--sys/dev/eisa/eisaconf.c7
-rw-r--r--sys/dev/ep/if_ep.c6
-rw-r--r--sys/dev/ex/if_ex.c10
-rw-r--r--sys/dev/fe/if_fe.c6
-rw-r--r--sys/dev/mcd/mcd.c6
-rw-r--r--sys/dev/pci/pci.c6
-rw-r--r--sys/dev/syscons/syscons.c4
-rw-r--r--sys/dev/vx/if_vx.c1
9 files changed, 18 insertions, 31 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 5a3df2f..f4db11d 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ed.c,v 1.126 1997/10/29 00:51:50 jdp Exp $
+ * $Id: if_ed.c,v 1.127 1997/11/02 07:12:52 davidg Exp $
*/
/*
@@ -2570,7 +2570,6 @@ ed_ioctl(ifp, command, data)
caddr_t data;
{
struct ed_softc *sc = ifp->if_softc;
- struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
if (sc->gone) {
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c
index f1e7262..de62d63 100644
--- a/sys/dev/eisa/eisaconf.c
+++ b/sys/dev/eisa/eisaconf.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: eisaconf.c,v 1.31 1997/09/21 21:35:23 gibbs Exp $
+ * $Id: eisaconf.c,v 1.32 1997/10/28 15:58:08 bde Exp $
*/
#include "opt_eisa.h"
@@ -112,7 +112,6 @@ void
eisa_configure()
{
int i,slot;
- char *id_string;
struct eisa_device_node *dev_node;
struct eisa_driver **e_drvp;
struct eisa_driver *e_drv;
@@ -369,8 +368,6 @@ eisa_add_intr(e_dev, irq)
int irq;
{
struct irq_node *irq_info;
- void *dev_instance = (void *)-1; /* XXX use cfg->devdata */
- void *idesc;
irq_info = (struct irq_node *)malloc(sizeof(*irq_info), M_DEVBUF,
M_NOWAIT);
@@ -392,8 +389,6 @@ eisa_reg_intr(e_dev, irq, func, arg, maskptr, shared)
u_int *maskptr;
int shared;
{
- int result;
- int s;
char string[25];
char separator = ',';
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index 90f1f2e..648b577 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: if_ep.c,v 1.64 1997/10/26 21:08:40 nate Exp $
+ * $Id: if_ep.c,v 1.65 1997/10/27 00:02:33 fenner Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@@ -568,9 +568,7 @@ int
ep_attach(sc)
struct ep_softc *sc;
{
- struct ifaddr *ifa;
struct ifnet *ifp = &sc->arpcom.ac_if;
- struct sockaddr_dl *sdl;
u_short *p;
int i;
int attached;
@@ -1032,7 +1030,6 @@ epread(sc)
int lenthisone;
short rx_fifo2, status;
- register short delta;
register short rx_fifo;
ifp = &sc->arpcom.ac_if;
@@ -1129,7 +1126,6 @@ read_again:
outw(BASE + EP_COMMAND, SET_RX_EARLY_THRESH | RX_NEXT_EARLY_THRESH);
return;
}
-all_pkt:
outw(BASE + EP_COMMAND, RX_DISCARD_TOP_PACK);
++ifp->if_ipackets;
ep_fset(F_RX_FIRST);
diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c
index fd8714c..6599e60 100644
--- a/sys/dev/ex/if_ex.c
+++ b/sys/dev/ex/if_ex.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: if_ex.c,v 1.7 1997/09/26 17:17:43 msmith Exp $
*/
/*
@@ -249,8 +249,6 @@ int ex_attach(struct isa_device *dev)
int unit = dev->id_unit;
struct ex_softc *sc = &ex_sc[unit];
struct ifnet *ifp = &sc->arpcom.ac_if;
- struct ifaddr *ifa;
- struct sockaddr_dl *sdl;
DODEBUG(Start_End, printf("ex_attach%d: start\n", unit););
@@ -393,7 +391,7 @@ void ex_start(struct ifnet *ifp)
register struct ex_softc *sc = &ex_sc[unit];
register int iobase = sc->iobase;
int i, s, len, data_len, avail, dest, next;
- unsigned char tmp16[2], *cP;
+ unsigned char tmp16[2];
struct mbuf *opkt;
register struct mbuf *m;
@@ -570,7 +568,7 @@ void exintr(int unit)
struct ex_softc *sc = &ex_sc[unit];
struct ifnet *ifp = &sc->arpcom.ac_if;
int iobase = sc->iobase;
- int s, int_status, send_pkts;
+ int int_status, send_pkts;
DODEBUG(Start_End, printf("exintr%d: start\n", unit););
@@ -871,7 +869,6 @@ int ex_ioctl(register struct ifnet *ifp, int cmd, caddr_t data)
void ex_reset(int unit)
{
struct ex_softc *sc = &ex_sc[unit];
- struct ifnet *ifp = &sc->arpcom.ac_if;
int s;
DODEBUG(Start_End, printf("ex_reset%d: start\n", unit););
@@ -889,7 +886,6 @@ void ex_reset(int unit)
void ex_watchdog(struct ifnet *ifp)
{
- struct ex_softc *sc = &ex_sc[ifp->if_unit];
DODEBUG(Start_End, printf("ex_watchdog%d: start\n", ifp->if_unit););
diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c
index 1353411..fbdc2e6 100644
--- a/sys/dev/fe/if_fe.c
+++ b/sys/dev/fe/if_fe.c
@@ -21,7 +21,7 @@
*/
/*
- * $Id: if_fe.c,v 1.32 1997/10/26 21:08:41 nate Exp $
+ * $Id: if_fe.c,v 1.33 1997/10/29 15:54:19 nate Exp $
*
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
* To be used with FreeBSD 2.x
@@ -1128,7 +1128,7 @@ fe_init_ati ( struct fe_softc * sc )
static int
fe_probe_gwy ( DEVICE * dev, struct fe_softc * sc )
{
- int i,type;
+ int i;
static struct fe_simple_probe_struct probe_table [] = {
{ FE_DLCR2, 0x70, 0x00 },
@@ -1680,7 +1680,7 @@ static void
fe_init ( int unit )
{
struct fe_softc *sc = &fe_softc[unit];
- int i, s;
+ int s;
#if FE_DEBUG >= 3
fe_dump( LOG_INFO, sc, "init()" );
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c
index 8f85db6..377f589 100644
--- a/sys/dev/mcd/mcd.c
+++ b/sys/dev/mcd/mcd.c
@@ -40,7 +40,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: mcd.c,v 1.93 1997/07/20 14:10:06 bde Exp $
+ * $Id: mcd.c,v 1.94 1997/09/21 21:41:26 gibbs Exp $
*/
static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
@@ -187,7 +187,9 @@ static int mcd_subchan(int unit, struct ioc_read_subchannel *sc);
static int mcd_toc_header(int unit, struct ioc_toc_header *th);
static int mcd_read_toc(int unit);
static int mcd_toc_entrys(int unit, struct ioc_read_toc_entry *te);
+#if 0
static int mcd_toc_entry(int unit, struct ioc_read_toc_single_entry *te);
+#endif
static int mcd_stop(int unit);
static int mcd_eject(int unit);
static int mcd_inject(int unit);
@@ -1421,6 +1423,7 @@ mcd_read_toc(int unit)
return 0;
}
+#if 0
static int
mcd_toc_entry(int unit, struct ioc_read_toc_single_entry *te)
{
@@ -1471,6 +1474,7 @@ mcd_toc_entry(int unit, struct ioc_read_toc_single_entry *te)
}
return 0;
}
+#endif
static int
mcd_toc_entrys(int unit, struct ioc_read_toc_entry *te)
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 468ec05..f94498d 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci.c,v 1.78 1997/08/02 14:33:12 bde Exp $
+ * $Id: pci.c,v 1.79 1997/09/14 03:19:36 peter Exp $
*
*/
@@ -357,6 +357,7 @@ pci_readcfg(pcicfgregs *probe)
return (cfg);
}
+#if 0
/* free pcicfgregs structure and all depending data structures */
static int
@@ -369,6 +370,7 @@ pci_freecfg(pcicfgregs *cfg)
free(cfg, M_DEVBUF);
return (0);
}
+#endif
static void
pci_addcfg(pcicfgregs *cfg)
@@ -491,9 +493,7 @@ pci_close(dev_t dev, int flag, int devtype, struct proc *p)
static int
pci_ioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
{
- struct pci_conf_io *cio;
struct pci_io *io;
- size_t iolen;
int error;
if (cmd != PCIOCGETCONF && !(flag & FWRITE))
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index cdca487..7f6d409 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.235 1997/10/23 03:23:49 yokota Exp $
+ * $Id: syscons.c,v 1.236 1997/10/26 07:36:13 yokota Exp $
*/
#include "sc.h"
@@ -595,7 +595,6 @@ sckbdprobe(int unit, int flags)
goto fail;
}
-succeed:
kbdc_set_device_mask(sc_kbdc, m | KBD_KBD_CONTROL_BITS),
kbdc_lock(sc_kbdc, FALSE);
return TRUE;
@@ -3451,7 +3450,6 @@ static void
set_keyboard(int command, int data)
{
int s;
- int c;
if (sc_kbdc == NULL)
return;
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index f1f744f..420e6c1 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -905,7 +905,6 @@ vxioctl(ifp, cmd, data)
caddr_t data;
{
struct vx_softc *sc = vx_softc[ifp->if_unit];
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
OpenPOWER on IntegriCloud