projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2537468
)
staging: comedi: do not return -ENOSYS.
author
Ted Chen
<tedc.37zngo@gmail.com>
Tue, 4 Aug 2015 17:18:46 +0000
(
01:18
+0800)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/drivers.c
b/drivers/staging/comedi/drivers.c
index ed0b60c925def80fa326491eba9b1467e4497073..b03bc6639f79478fe3034c4e98fd42178a3467bc 100644
(file)
--- 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 = -E
NOSYS
;
+ ret = -E
IO
;
goto out;
}
dev->driver = driv;