]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fs/proc/inode.c: delete unnecessary variable in proc_alloc_inode()
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 3 Jan 2019 23:26:05 +0000 (15:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jan 2019 21:13:45 +0000 (13:13 -0800)
Link: http://lkml.kernel.org/r/20181203164015.GA6904@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/inode.c

index 5792f9e39466ef4420720c737b3a010da17a986f..da649ccd680431424c2d5ec82f6fa2487f5a0c30 100644 (file)
@@ -59,7 +59,6 @@ static struct kmem_cache *pde_opener_cache __ro_after_init;
 static struct inode *proc_alloc_inode(struct super_block *sb)
 {
        struct proc_inode *ei;
-       struct inode *inode;
 
        ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL);
        if (!ei)
@@ -71,8 +70,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb)
        ei->sysctl = NULL;
        ei->sysctl_entry = NULL;
        ei->ns_ops = NULL;
-       inode = &ei->vfs_inode;
-       return inode;
+       return &ei->vfs_inode;
 }
 
 static void proc_i_callback(struct rcu_head *head)