diff options
Diffstat (limited to 'fs/proc')
-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 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; |