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>
This commit is contained in:
Alexey Dobriyan
2008-10-17 03:43:55 +04:00
parent 7c88db0cb5
commit 5bcd7ff9e1
3 changed files with 5 additions and 6 deletions

View File

@@ -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;