diff options
| author | Santhosh Pai <[email protected]> | 2015-06-29 10:44:03 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-07-14 18:22:20 -0700 |
| commit | 90e6f51da718fc982eafd3dd7d6c78b378f67136 (patch) | |
| tree | ef3eb2bf4cccfa1835f0ef6a43422bcde8238d99 /include/linux | |
| parent | 0e0d311ebd589e65b8e5559e067d0dd109ac3434 (diff) | |
staging: Comedi: comedi_fops: Fixed the return error code
This patch fixes the checkpatch.pl warning:
WARNING: ENOSYS means 'invalid syscall nr' and nothing else
try_module_get fails when the reference count of the module is not
allowed to be incremented ,and hence -ENXIO is returned indicating
no device or address.
[IA - combined two of santhosh's changes to the error return value!]
Signed-off-by: santhosh pai <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions