summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sf.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_sf.c
parent5ad569a8f45da3f08e3c10b833fa352d852b6fbb (diff)
unknown ioctl is ENOTTY not EINVAL
Diffstat (limited to 'sys/dev/pci/if_sf.c')
-rw-r--r--sys/dev/pci/if_sf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sf.c b/sys/dev/pci/if_sf.c
index e7b87448301..aa35a67dbda 100644
--- a/sys/dev/pci/if_sf.c
+++ b/sys/dev/pci/if_sf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sf.c,v 1.36 2006/03/25 22:41:45 djm Exp $ */
+/* $OpenBSD: if_sf.c,v 1.37 2006/05/28 00:04:24 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -521,7 +521,7 @@ int sf_ioctl(ifp, command, data)
error = ifmedia_ioctl(ifp, ifr, &mii->mii_media, command);
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}