aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-26 17:43:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 12:12:47 -0400
commit73d3646029138743989b6c213628484301a72eb1 (patch)
tree1df20844702dbf7d8d014ae08bdb479a8350533f /fs/proc/base.c
parentb3ac022cb9dc5883505a88b159d1b240ad1ef405 (diff)
proc: cleanup: remove unused assignments
I removed 3 unused assignments. The first two get reset on the first statement of their functions. For "err" in root.c we don't return an error and we don't use the variable again. Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: Oleg Nesterov <oleg@redhat.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index c384e8b84dff..acb7ef80ea4f 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2432,7 +2432,7 @@ static struct dentry *proc_base_instantiate(struct inode *dir,
2432 const struct pid_entry *p = ptr; 2432 const struct pid_entry *p = ptr;
2433 struct inode *inode; 2433 struct inode *inode;
2434 struct proc_inode *ei; 2434 struct proc_inode *ei;
2435 struct dentry *error = ERR_PTR(-EINVAL); 2435 struct dentry *error;
2436 2436
2437 /* Allocate the inode */ 2437 /* Allocate the inode */
2438 error = ERR_PTR(-ENOMEM); 2438 error = ERR_PTR(-ENOMEM);
@@ -2782,7 +2782,7 @@ out:
2782 2782
2783struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd) 2783struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
2784{ 2784{
2785 struct dentry *result = ERR_PTR(-ENOENT); 2785 struct dentry *result;
2786 struct task_struct *task; 2786 struct task_struct *task;
2787 unsigned tgid; 2787 unsigned tgid;
2788 struct pid_namespace *ns; 2788 struct pid_namespace *ns;