summaryrefslogtreecommitdiff
path: root/drivers/staging/dgrp
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-30 00:45:38 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 18:13:07 (GMT)
commit878c68c6c2a28e3c3a62f723e0eaa2fd02297594 (patch)
tree6e3e21282191287bc2097c9713fa569fc966a1c4 /drivers/staging/dgrp
parentaa66d7bba7c25ab2aefad9dad01c485b04dc4cbe (diff)
downloadlinux-878c68c6c2a28e3c3a62f723e0eaa2fd02297594.tar.xz
dgrp procfs fixes, part 2
All table entries either have non-NULL ->proc_file_fops or non-NULL child. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging/dgrp')
-rw-r--r--drivers/staging/dgrp/dgrp_specproc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/dgrp/dgrp_specproc.c b/drivers/staging/dgrp/dgrp_specproc.c
index 556cb31..23b10f3 100644
--- 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;