according to linux device drivers, POSIX standard is to return -ENOTTY for
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 10 Jan 2002 18:10:17 +0000 (18:10 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 10 Jan 2002 18:10:17 +0000 (18:10 +0000)
invalid ioctl number

comedi/comedi_fops.c

index 7217ba87c07288108f0be8a913b043d01a2f3652..c53ff45d09c83c7c0a46154e776a6a935cd5a723 100644 (file)
@@ -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;
 }