summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-03 20:25:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-03 20:25:30 +0000
commitaff24f90414fd25a51d776d03fbd689999311d25 (patch)
treef2634d9150f5f12a8766f5ff501bb2cc86b3e4fb /sys/dev/ic
parent9cc9fb410777526def4f80ff1537f29048389ae1 (diff)
Use ether_ioctl().
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/dp8390.c6
-rw-r--r--sys/dev/ic/smc91cxx.c5
2 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/ic/dp8390.c b/sys/dev/ic/dp8390.c
index 9b79461cbbc..2e20582a1d1 100644
--- a/sys/dev/ic/dp8390.c
+++ b/sys/dev/ic/dp8390.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dp8390.c,v 1.39 2007/05/07 18:53:04 deraadt Exp $ */
+/* $OpenBSD: dp8390.c,v 1.40 2008/10/03 20:25:29 brad Exp $ */
/* $NetBSD: dp8390.c,v 1.13 1998/07/05 06:49:11 jonathan Exp $ */
/*
@@ -821,7 +821,6 @@ dp8390_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
s = splnet();
switch (cmd) {
-
case SIOCSIFADDR:
if ((error = dp8390_enable(sc)) != 0)
break;
@@ -908,8 +907,7 @@ dp8390_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
default:
- error = EINVAL;
- break;
+ error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data);
}
splx(s);
diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c
index 1fc4c581cbf..00ad6a60b52 100644
--- a/sys/dev/ic/smc91cxx.c
+++ b/sys/dev/ic/smc91cxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smc91cxx.c,v 1.28 2008/09/10 14:01:22 blambert Exp $ */
+/* $OpenBSD: smc91cxx.c,v 1.29 2008/10/03 20:25:29 brad Exp $ */
/* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */
/*-
@@ -1116,8 +1116,7 @@ smc91cxx_ioctl(ifp, cmd, data)
break;
default:
- error = EINVAL;
- break;
+ error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data);
}
splx(s);