staging: comedi: serial2002: use proper errno
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Aug 2015 20:18:43 +0000 (13:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:18 +0000 (18:24 -0700)
commit8d63f5b8f87204cbbdbf5616731680dac7add01b
tree684b5931160ee19a5b79f0d27ebb914490e2e6a2
parent3335dfd1ab5f02915fb2aeeace41526f92d8b560
staging: comedi: serial2002: use proper errno

checkpatch.pl reports:
WARNING: ENOSYS means 'invalid syscall nr' and nothing else

Change the error code to -ENOTTY.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/serial2002.c