diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-09 23:12:18 +0300 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-09 23:12:18 +0300 |
commit | 9f5560c4df483908659fca33e7fa768832f933b2 (patch) | |
tree | 1f898056ff1ac21ce5826219153e70ca8a54f845 /fs | |
parent | e8f3f01b012e0267908005c15717619678710651 (diff) |
proc: remove useless WARN_ONs
NULL "struct inode *" means VFS passed NULL inode to ->open.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/base.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 486cf3fe7139..4a1c578e6928 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; |