diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-10-03 20:25:30 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-10-03 20:25:30 +0000 |
commit | aff24f90414fd25a51d776d03fbd689999311d25 (patch) | |
tree | f2634d9150f5f12a8766f5ff501bb2cc86b3e4fb /sys/dev | |
parent | 9cc9fb410777526def4f80ff1537f29048389ae1 (diff) |
Use ether_ioctl().
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/dp8390.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/smc91cxx.c | 5 | ||||
-rw-r--r-- | sys/dev/usb/if_url.c | 6 |
3 files changed, 6 insertions, 11 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); diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index 2d9b1e87e39..5f7497b72c7 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.51 2008/09/10 14:01:23 blambert Exp $ */ +/* $OpenBSD: if_url.c,v 1.52 2008/10/03 20:25:29 brad Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -1157,12 +1157,10 @@ url_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) error = ifmedia_ioctl(ifp, ifr, &mii->mii_media, cmd); break; default: - error = EINVAL; - break; + error = ether_ioctl(ifp, &sc->sc_ac, cmd, data); } splx(s); - return (error); } |