Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: comedi: do not return -ENOSYS.

fixed coding style issue by replacing ENOSYS
with EIO because it means 'invalid syscall nr'
and nothing else.

Signed-off-by: Ted Chen <tedc.37zngo@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ted Chen and committed by
Greg Kroah-Hartman
1a59adb2 2537468c

+1 -1
+1 -1
drivers/staging/comedi/drivers.c
··· 820 820 "driver '%s' does not support attach using comedi_config\n", 821 821 driv->driver_name); 822 822 module_put(driv->module); 823 - ret = -ENOSYS; 823 + ret = -EIO; 824 824 goto out; 825 825 } 826 826 dev->driver = driv;