From 61aafc871dee9e2b1e5344a90ade212ca704fca8 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 10 Jan 2002 18:10:17 +0000 Subject: [PATCH] according to linux device drivers, POSIX standard is to return -ENOTTY for invalid ioctl number --- comedi/comedi_fops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 7217ba87..c53ff45d 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -123,9 +123,8 @@ static int comedi_ioctl(struct inode * inode,struct file * file, case COMEDI_POLL: return do_poll_ioctl(dev,arg,file); default: - return -EIO; + return -ENOTTY; } - return -EIO; } -- 2.26.2