summaryrefslogtreecommitdiff
path: root/sys/dev/ic/xl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/xl.c')
-rw-r--r--sys/dev/ic/xl.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 8f426de177d..cbab3bfd8af 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.81 2008/09/18 15:16:30 naddy Exp $ */
+/* $OpenBSD: xl.c,v 1.82 2008/10/02 20:21:13 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2271,11 +2271,6 @@ xl_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
s = splnet();
- if ((error = ether_ioctl(ifp, &sc->sc_arpcom, command, data)) > 0) {
- splx(s);
- return error;
- }
-
switch(command) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
@@ -2344,12 +2339,10 @@ xl_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
&mii->mii_media, command);
break;
default:
- error = EINVAL;
- break;
+ error = ether_ioctl(ifp, &sc->sc_arpcom, command, data);
}
splx(s);
-
return (error);
}