diff options
author | 2006-04-10 22:53:45 -0700 | |
---|---|---|
committer | 2006-04-11 06:18:37 -0700 | |
commit | a7fbf6bba7f1f0616b0223a8b1cba91fffe607f5 (patch) | |
tree | fea61a369fe5efe55fea010a9d3608bd8f0fdc9c /drivers/s390/cio/cio.c | |
parent | [PATCH] s390: invalid check after kzalloc() (diff) | |
download | linux-dev-a7fbf6bba7f1f0616b0223a8b1cba91fffe607f5.tar.xz linux-dev-a7fbf6bba7f1f0616b0223a8b1cba91fffe607f5.zip |
[PATCH] s390: wrong return codes in cio_ignore_proc_init()
cio_ignore_proc_init() returns 1 in case of success and 0 in case of failure.
The caller tests for != 0, so better return 0 in case of success and -ENOENT
in case of failure.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/cio/cio.c')
0 files changed, 0 insertions, 0 deletions