Commit 230e40fb authored by WANG Cong's avatar WANG Cong Committed by Alexey Dobriyan

proc: remove write-only variable in proc_pident_lookup()

Signed-off-by: default avatarWANG Cong <wangcong@zeuux.org>
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent dfe6b7d9
...@@ -2001,13 +2001,11 @@ static struct dentry *proc_pident_lookup(struct inode *dir, ...@@ -2001,13 +2001,11 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
const struct pid_entry *ents, const struct pid_entry *ents,
unsigned int nents) unsigned int nents)
{ {
struct inode *inode;
struct dentry *error; struct dentry *error;
struct task_struct *task = get_proc_task(dir); struct task_struct *task = get_proc_task(dir);
const struct pid_entry *p, *last; const struct pid_entry *p, *last;
error = ERR_PTR(-ENOENT); error = ERR_PTR(-ENOENT);
inode = NULL;
if (!task) if (!task)
goto out_no_task; goto out_no_task;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment