proc: remove write-only variable in proc_pident_lookup()
authorWANG Cong <wangcong@zeuux.org>
Tue, 30 Dec 2008 16:10:35 +0000 (19:10 +0300)
committerAlexey Dobriyan <adobriyan@gmail.com>
Mon, 5 Jan 2009 09:27:45 +0000 (12:27 +0300)
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
fs/proc/base.c

index a9ccc12..0bc9ca0 100644 (file)
@@ -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;