diff options
author | WANG Cong <wangcong@zeuux.org> | 2008-12-30 11:10:35 -0500 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2009-01-05 04:27:45 -0500 |
commit | 230e40fbda242544389a5428a2efac568178ddfe (patch) | |
tree | 596bf1b66ba0c0478290d1186597f58572ec82aa /fs/proc/base.c | |
parent | dfe6b7d9406c631d697f8bbe1eae5569b808154f (diff) |
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>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index a9ccc1252731..0bc9ca03b91e 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -2001,13 +2001,11 @@ static struct dentry *proc_pident_lookup(struct inode *dir, | |||
2001 | const struct pid_entry *ents, | 2001 | const struct pid_entry *ents, |
2002 | unsigned int nents) | 2002 | unsigned int nents) |
2003 | { | 2003 | { |
2004 | struct inode *inode; | ||
2005 | struct dentry *error; | 2004 | struct dentry *error; |
2006 | struct task_struct *task = get_proc_task(dir); | 2005 | struct task_struct *task = get_proc_task(dir); |
2007 | const struct pid_entry *p, *last; | 2006 | const struct pid_entry *p, *last; |
2008 | 2007 | ||
2009 | error = ERR_PTR(-ENOENT); | 2008 | error = ERR_PTR(-ENOENT); |
2010 | inode = NULL; | ||
2011 | 2009 | ||
2012 | if (!task) | 2010 | if (!task) |
2013 | goto out_no_task; | 2011 | goto out_no_task; |