git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4df2b9
)
proc: remove useless WARN_ONs
author
Alexey Dobriyan
<adobriyan@gmail.com>
Sun, 9 Nov 2008 20:12:18 +0000
(23:12 +0300)
committer
Alexey Dobriyan
<adobriyan@gmail.com>
Mon, 5 Jan 2009 09:27:44 +0000
(12:27 +0300)
NULL "struct inode *" means VFS passed NULL inode to ->open.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index
cad92c1
..
8642623
100644
(file)
--- 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;