Skip to content

Commit

Permalink
proc: remove useless WARN_ONs
Browse files Browse the repository at this point in the history
NULL "struct inode *" means VFS passed NULL inode to ->open.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
  • Loading branch information
Alexey Dobriyan committed Jan 5, 2009
1 parent b4df2b9 commit ecae934
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit ecae934

Please sign in to comment.