[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20081225191531.GB3130@hack.private>
Date: Thu, 25 Dec 2008 19:15:31 +0000
From: Américo Wang <xiyou.wangcong@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Alexey Dobriyan <adobriyan@...il.com>,
Andrew Morton <akpm@...l.org>
Subject: [Patch] fs/proc/base.c: remove a useless local variable
Remove a useless variable 'inode' in proc_pident_lookup().
Signed-off-by: WANG Cong <wangcong@...ux.org>
Cc: Alexey Dobriyan <adobriyan@...il.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists