diff options
author | Ted Chen <tedc.37zngo@gmail.com> | 2015-08-04 17:18:46 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 18:55:44 (GMT) |
commit | 1a59adb222bc4758241eb4ff253faa5b1ebd4cab (patch) | |
tree | 95eb0649581d31bcf6fc37e69c81a569b1d99637 /drivers/staging/comedi/drivers.c | |
parent | 2537468cee9ff2b9d4c425e2f8141aaa274dc495 (diff) | |
download | linux-1a59adb222bc4758241eb4ff253faa5b1ebd4cab.tar.xz |
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>
Diffstat (limited to 'drivers/staging/comedi/drivers.c')
-rw-r--r-- | drivers/staging/comedi/drivers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c index ed0b60c..b03bc66 100644 --- a/drivers/staging/comedi/drivers.c +++ b/drivers/staging/comedi/drivers.c @@ -820,7 +820,7 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it) "driver '%s' does not support attach using comedi_config\n", driv->driver_name); module_put(driv->module); - ret = -ENOSYS; + ret = -EIO; goto out; } dev->driver = driv; |