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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user