summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_txp.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_txp.c
parent5ad569a8f45da3f08e3c10b833fa352d852b6fbb (diff)
unknown ioctl is ENOTTY not EINVAL
Diffstat (limited to 'sys/dev/pci/if_txp.c')
-rw-r--r--sys/dev/pci/if_txp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c
index fdfecb2f184..02f921fb3c3 100644
--- a/sys/dev/pci/if_txp.c
+++ b/sys/dev/pci/if_txp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txp.c,v 1.81 2006/04/26 15:47:07 jason Exp $ */
+/* $OpenBSD: if_txp.c,v 1.82 2006/05/28 00:04:24 jason Exp $ */
/*
* Copyright (c) 2001
@@ -1302,7 +1302,7 @@ txp_ioctl(ifp, command, data)
error = ifmedia_ioctl(ifp, ifr, &sc->sc_ifmedia, command);
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}