]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/proc/base.c
proc: cleanup: remove unused assignments
[net-next-2.6.git] / fs / proc / base.c
index c384e8b84dffea78a450b416533a60b192620541..acb7ef80ea4fcc4987b0b2159f70d599f659c31e 100644 (file)
@@ -2432,7 +2432,7 @@ static struct dentry *proc_base_instantiate(struct inode *dir,
        const struct pid_entry *p = ptr;
        struct inode *inode;
        struct proc_inode *ei;
-       struct dentry *error = ERR_PTR(-EINVAL);
+       struct dentry *error;
 
        /* Allocate the inode */
        error = ERR_PTR(-ENOMEM);
@@ -2782,7 +2782,7 @@ out:
 
 struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
 {
-       struct dentry *result = ERR_PTR(-ENOENT);
+       struct dentry *result;
        struct task_struct *task;
        unsigned tgid;
        struct pid_namespace *ns;