summaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-17 03:43:55 +0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 13:27:50 +0400
commit5bcd7ff9e1690dbdbccb2a1cb3c2ea8b8381c435 (patch)
tree4655120e76654512a1229bb4af0a41fb55c23663 /fs/proc/root.c
parent7c88db0cb589df980acfb2f73c3595a0653004ec (diff)
downloadop-kernel-dev-5bcd7ff9e1690dbdbccb2a1cb3c2ea8b8381c435.zip
op-kernel-dev-5bcd7ff9e1690dbdbccb2a1cb3c2ea8b8381c435.tar.gz
proc: proc_init_inodecache() can't fail
kmem_cache creation code will panic, don't return anything. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 9511753..2a3abd2 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -104,9 +104,9 @@ static struct file_system_type proc_fs_type = {
void __init proc_root_init(void)
{
- int err = proc_init_inodecache();
- if (err)
- return;
+ int err;
+
+ proc_init_inodecache();
err = register_filesystem(&proc_fs_type);
if (err)
return;
OpenPOWER on IntegriCloud