diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-17 01:43:55 +0200 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-23 11:27:50 +0200 |
commit | 5bcd7ff9e1690dbdbccb2a1cb3c2ea8b8381c435 (patch) | |
tree | 4655120e76654512a1229bb4af0a41fb55c23663 /fs/proc/root.c | |
parent | proc: fix vma display mismatch between /proc/pid/{maps,smaps} (diff) | |
download | linux-5bcd7ff9e1690dbdbccb2a1cb3c2ea8b8381c435.tar.xz linux-5bcd7ff9e1690dbdbccb2a1cb3c2ea8b8381c435.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index 95117538a4f6..2a3abd25b30b 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; |