summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfe.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_nfe.c
parent5ad569a8f45da3f08e3c10b833fa352d852b6fbb (diff)
unknown ioctl is ENOTTY not EINVAL
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r--sys/dev/pci/if_nfe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index a3459435b8e..2a89b01762b 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.59 2006/05/27 10:03:15 brad Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.60 2006/05/28 00:04:24 jason Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -530,7 +530,7 @@ nfe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, cmd);
break;
default:
- error = EINVAL;
+ error = ENOTTY;
}
splx(s);