From: Alexey Dobriyan Date: Sun, 9 Nov 2008 20:12:18 +0000 (+0300) Subject: proc: remove useless WARN_ONs X-Git-Tag: v2.6.29-rc1~188^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ecae934edc0c29ec7405da18855004c317de26c6;p=linux-2.6-omap-h63xx.git proc: remove useless WARN_ONs NULL "struct inode *" means VFS passed NULL inode to ->open. Signed-off-by: Alexey Dobriyan --- diff --git a/fs/proc/base.c b/fs/proc/base.c index cad92c1ac2b..8642623ea79 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -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;