OSDN Git Service

staging: comedi: do not return -ENOSYS.
authorTed Chen <tedc.37zngo@gmail.com>
Tue, 4 Aug 2015 17:18:46 +0000 (01:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 18:55:44 +0000 (11:55 -0700)
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>
drivers/staging/comedi/drivers.c

index ed0b60c..b03bc66 100644 (file)
@@ -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;