[PATCH] staging: comedi: do not return -ENOSYS.
Ian Abbott
abbotti at mev.co.uk
Wed Aug 5 16:17:55 UTC 2015
On 04/08/15 18:18, Ted Chen wrote:
> 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 at gmail.com>
> ---
> drivers/staging/comedi/drivers.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
>
Thanks.
Reviewed-by: Ian Abbott <abbotti at mev.co.uk>
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti at mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
More information about the devel
mailing list