All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] fs/proc/base.c: remove a useless local variable
@ 2008-12-25 19:15 Américo Wang
  0 siblings, 0 replies; only message in thread
From: Américo Wang @ 2008-12-25 19:15 UTC (permalink / raw)
  To: LKML; +Cc: Alexey Dobriyan, Andrew Morton



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

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>


---
diff --git a/fs/proc/base.c b/fs/proc/base.c
index d467760..966603e 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -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;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-25 11:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-25 19:15 [Patch] fs/proc/base.c: remove a useless local variable Américo Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.