projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa66d7b
)
dgrp procfs fixes, part 2
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 30 Mar 2013 00:45:38 +0000
(20:45 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:07 +0000
(14:13 -0400)
All table entries either have non-NULL ->proc_file_fops or
non-NULL child.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/dgrp/dgrp_specproc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgrp/dgrp_specproc.c
b/drivers/staging/dgrp/dgrp_specproc.c
index 556cb3124da6d783c3ba239c59bb175376512f9b..23b10f365bc33449e7a6f0f38c2ab748fe647bc6 100644
(file)
--- a/
drivers/staging/dgrp/dgrp_specproc.c
+++ b/
drivers/staging/dgrp/dgrp_specproc.c
@@
-269,10
+269,7
@@
static void register_proc_table(struct dgrp_proc_entry *table,
de->data = (void *) table;
if (!table->child) {
de->proc_iops = &proc_inode_ops;
- if (table->proc_file_ops)
- de->proc_fops = table->proc_file_ops;
- else
- de->proc_fops = &dgrp_proc_file_ops;
+ de->proc_fops = table->proc_file_ops;
}
}
table->de = de;