Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

proc: remove write-only variable in proc_pident_lookup()

parent dfe6b7d9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;