From: Frank Mori Hess Date: Thu, 10 Jan 2002 18:10:17 +0000 (+0000) Subject: according to linux device drivers, POSIX standard is to return -ENOTTY for X-Git-Tag: r0_7_62~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=61aafc871dee9e2b1e5344a90ade212ca704fca8;p=comedi.git according to linux device drivers, POSIX standard is to return -ENOTTY for invalid ioctl number --- 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; }