aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-09 15:12:18 -0500
committerAlexey Dobriyan <adobriyan@gmail.com>2009-01-05 04:27:44 -0500
commitecae934edc0c29ec7405da18855004c317de26c6 (patch)
treee5cd5a059a8ad984a73c21af7014852782242813 /fs
parentb4df2b92d8461444fac429c75ba6e125c63056bc (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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index cad92c1ac2b3..8642623ea798 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)
1186 struct inode *inode = m->private; 1186 struct inode *inode = m->private;
1187 struct task_struct *p; 1187 struct task_struct *p;
1188 1188
1189 WARN_ON(!inode);
1190
1191 p = get_proc_task(inode); 1189 p = get_proc_task(inode);
1192 if (!p) 1190 if (!p)
1193 return -ESRCH; 1191 return -ESRCH;
@@ -1205,8 +1203,6 @@ sched_write(struct file *file, const char __user *buf,
1205 struct inode *inode = file->f_path.dentry->d_inode; 1203 struct inode *inode = file->f_path.dentry->d_inode;
1206 struct task_struct *p; 1204 struct task_struct *p;
1207 1205
1208 WARN_ON(!inode);
1209
1210 p = get_proc_task(inode); 1206 p = get_proc_task(inode);
1211 if (!p) 1207 if (!p)
1212 return -ESRCH; 1208 return -ESRCH;