summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2006-05-28 00:04:25 +0000
committerJason Wright <jason@cvs.openbsd.org>2006-05-28 00:04:25 +0000
commitf32ef14b7e0390d427153634ede40cc7b15599a4 (patch)
tree110799db96d88d981b1eed5084c4ec10679cc7f4 /sys/dev/pci/if_em.c
parent5ad569a8f45da3f08e3c10b833fa352d852b6fbb (diff)
unknown ioctl is ENOTTY not EINVAL
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r--sys/dev/pci/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 852314909e2..0906ff57fc1 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.126 2006/05/27 10:03:15 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.127 2006/05/28 00:04:24 jason Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -539,7 +539,7 @@ em_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
break;
default:
IOCTL_DEBUGOUT1("ioctl received: UNKNOWN (0x%x)", (int)command);
- error = EINVAL;
+ error = ENOTTY;
}
splx(s);