Commit 230f72e9 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

fs/proc/inode.c: delete unnecessary variable in proc_alloc_inode()

Link: http://lkml.kernel.org/r/20181203164015.GA6904@avx2Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 81966d83
...@@ -59,7 +59,6 @@ static struct kmem_cache *pde_opener_cache __ro_after_init; ...@@ -59,7 +59,6 @@ static struct kmem_cache *pde_opener_cache __ro_after_init;
static struct inode *proc_alloc_inode(struct super_block *sb) static struct inode *proc_alloc_inode(struct super_block *sb)
{ {
struct proc_inode *ei; struct proc_inode *ei;
struct inode *inode;
ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL);
if (!ei) if (!ei)
...@@ -71,8 +70,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb) ...@@ -71,8 +70,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb)
ei->sysctl = NULL; ei->sysctl = NULL;
ei->sysctl_entry = NULL; ei->sysctl_entry = NULL;
ei->ns_ops = NULL; ei->ns_ops = NULL;
inode = &ei->vfs_inode; return &ei->vfs_inode;
return inode;
} }
static void proc_i_callback(struct rcu_head *head) static void proc_i_callback(struct rcu_head *head)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment