Skip to contentSkip to conversation

fs/proc/base.c: remove a useless local variable

PATCH New Américo Wang 1 participant 1 message Dec 25, 2008 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/proc/base.c: remove a useless local variable

Remove a useless variable 'inode' in proc_pident_lookup().

Cc Alexey Dobriyan <[email protected]>

---

fs/proc/base.c +0 -2
index d467760..966603e 100644
@@ -1960,13 +1960,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;