Skip to content

Commit

Permalink
proc: remove write-only variable in proc_pident_lookup()
Browse files Browse the repository at this point in the history
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
  • Loading branch information
WANG Cong authored and Alexey Dobriyan committed Jan 5, 2009
1 parent dfe6b7d commit 230e40f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 230e40f

Please sign in to comment.