Explorar o código

proc: remove write-only variable in proc_pident_lookup()

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
WANG Cong %!s(int64=17) %!d(string=hai) anos
pai
achega
230e40fbda
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      fs/proc/base.c

+ 0 - 2
fs/proc/base.c

@@ -2001,13 +2001,11 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
 					 const struct pid_entry *ents,
 					 unsigned int nents)
 {
-	struct inode *inode;
 	struct dentry *error;
 	struct task_struct *task = get_proc_task(dir);
 	const struct pid_entry *p, *last;
 
 	error = ERR_PTR(-ENOENT);
-	inode = NULL;
 
 	if (!task)
 		goto out_no_task;