summaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorWANG Cong <wangcong@zeuux.org>2008-12-30 17:10:35 +0100
committerAlexey Dobriyan <adobriyan@gmail.com>2009-01-05 10:27:45 +0100
commit230e40fbda242544389a5428a2efac568178ddfe (patch)
tree596bf1b66ba0c0478290d1186597f58572ec82aa /fs/proc
parentproc: fix sparse warning (diff)
downloadlinux-230e40fbda242544389a5428a2efac568178ddfe.tar.xz
linux-230e40fbda242544389a5428a2efac568178ddfe.zip
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')
-rw-r--r--fs/proc/base.c2
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,
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;