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 ed0b60c925def80fa326491eba9b1467e4497073..b03bc6639f79478fe3034c4e98fd42178a3467bc 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;