Re: fix: lp.c wrong return code

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 24 Feb 2002 19:58:07 +0000 (GMT)


> calling the ioctl( LPSETIRQ ) the driver returns EINVAL (Invalid argument)instead of ENOSYS.
> Fix : return ENOSYS (Function not implemented)

ENOSYS is for a syscall not supported.

> if EINVAL is correct, you can delete the entiere entry, EINVAL in default.

It should actually be ENOTTY ...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/