提交 a7fbf6bb 编写于 作者: C Cornelia Huck 提交者: Linus Torvalds

[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: NCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 da074d0a
...@@ -414,11 +414,11 @@ cio_ignore_proc_init (void) ...@@ -414,11 +414,11 @@ cio_ignore_proc_init (void)
entry = create_proc_entry ("cio_ignore", S_IFREG | S_IRUGO | S_IWUSR, entry = create_proc_entry ("cio_ignore", S_IFREG | S_IRUGO | S_IWUSR,
&proc_root); &proc_root);
if (!entry) if (!entry)
return 0; return -ENOENT;
entry->proc_fops = &cio_ignore_proc_fops; entry->proc_fops = &cio_ignore_proc_fops;
return 1; return 0;
} }
__initcall (cio_ignore_proc_init); __initcall (cio_ignore_proc_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册