summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2001-10-05 01:02:26 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2001-10-05 01:02:26 +0000
commit6c7fcd4d430499e2428eaced69c13fcdba9aefa4 (patch)
treef1733f93ad248e9a4b2418d2fcb92ebfd60f3423 /sys
parent6a344a31cf1a687d223bafdb05762f6414b4e9b5 (diff)
random KNF and removal of unused variables
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_nge.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c
index 0b68d974179..2f4df88ddea 100644
--- a/sys/dev/pci/if_nge.c
+++ b/sys/dev/pci/if_nge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nge.c,v 1.12 2001/09/26 14:23:27 peter Exp $ */
+/* $OpenBSD: if_nge.c,v 1.13 2001/10/05 01:02:25 nate Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
@@ -111,8 +111,6 @@
#include <vm/vm.h> /* for vtophys */
-#define NGE_USEIOSPACE
-
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcidevs.h>
@@ -120,6 +118,8 @@
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
+#define NGE_USEIOSPACE
+
#include <dev/pci/if_ngereg.h>
int nge_probe __P((struct device *, void *, void *));
@@ -619,8 +619,6 @@ void nge_setmulti(sc)
u_int32_t h = 0, i, filtsave;
int bit, index;
- ifp = &sc->arpcom.ac_if;
-
if (ifp->if_flags & IFF_ALLMULTI || ifp->if_flags & IFF_PROMISC) {
NGE_CLRBIT(sc, NGE_RXFILT_CTL,
NGE_RXFILTCTL_MCHASH|NGE_RXFILTCTL_UCHASH);
@@ -636,7 +634,7 @@ void nge_setmulti(sc)
*/
NGE_SETBIT(sc, NGE_RXFILT_CTL, NGE_RXFILTCTL_MCHASH);
NGE_CLRBIT(sc, NGE_RXFILT_CTL,
- NGE_RXFILTCTL_ALLMULTI|NGE_RXFILTCTL_UCHASH);
+ NGE_RXFILTCTL_ALLMULTI|NGE_RXFILTCTL_UCHASH);
filtsave = CSR_READ_4(sc, NGE_RXFILT_CTL);
@@ -1061,7 +1059,7 @@ int nge_newbuf(sc, c, m)
if (buf == NULL) {
#ifdef NGE_VERBOSE
printf("%s: jumbo allocation failed "
- "-- packet dropped!\n", sc->sc_dv.dv_xname);
+ "-- packet dropped!\n", sc->sc_dv.dv_xname);
#endif
m_freem(m_new);
return(ENOBUFS);
@@ -1630,7 +1628,6 @@ void nge_start(ifp)
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m_head);
#endif
-
}
/* Transmit */
@@ -1864,7 +1861,7 @@ int nge_ioctl(ifp, command, data)
if ((error = ether_ioctl(ifp, &sc->arpcom, command, data)) > 0) {
splx(s);
return (error);
- }
+ }
switch(command) {
case SIOCSIFMTU:
@@ -2053,7 +2050,6 @@ void nge_shutdown(xsc)
nge_stop(sc);
}
-
struct cfattach nge_ca = {
sizeof(struct nge_softc), nge_probe, nge_attach
};