]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/base.c
proc: remove useless WARN_ONs
[linux-2.6-omap-h63xx.git] / fs / proc / base.c
index cad92c1ac2b389c17ac84cbc841bf646592542aa..8642623ea798b9f50d2d60edf431bcf1dc133b46 100644 (file)
@@ -1186,8 +1186,6 @@ static int sched_show(struct seq_file *m, void *v)
        struct inode *inode = m->private;
        struct task_struct *p;
 
-       WARN_ON(!inode);
-
        p = get_proc_task(inode);
        if (!p)
                return -ESRCH;
@@ -1205,8 +1203,6 @@ sched_write(struct file *file, const char __user *buf,
        struct inode *inode = file->f_path.dentry->d_inode;
        struct task_struct *p;
 
-       WARN_ON(!inode);
-
        p = get_proc_task(inode);
        if (!p)
                return -ESRCH;