summaryrefslogtreecommitdiff
path: root/sys/dev/ic/i82596.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/i82596.c')
-rw-r--r--sys/dev/ic/i82596.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/ic/i82596.c b/sys/dev/ic/i82596.c
index 3a2ad10a1a5..798f4722eaf 100644
--- a/sys/dev/ic/i82596.c
+++ b/sys/dev/ic/i82596.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82596.c,v 1.29 2008/06/26 05:42:15 ray Exp $ */
+/* $OpenBSD: i82596.c,v 1.30 2008/10/02 20:21:13 brad Exp $ */
/* $NetBSD: i82586.c,v 1.18 1998/08/15 04:42:42 mycroft Exp $ */
/*-
@@ -1870,13 +1870,7 @@ i82596_ioctl(ifp, cmd, data)
s = splnet();
- if ((error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data)) > 0) {
- splx(s);
- return error;
- }
-
switch(cmd) {
-
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
@@ -1949,8 +1943,9 @@ i82596_ioctl(ifp, cmd, data)
break;
default:
- error = EINVAL;
+ error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data);
}
+
splx(s);
return (error);
}