]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dgrp procfs fixes, part 2
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Mar 2013 00:45:38 +0000 (20:45 -0400)
committerAl 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

index 556cb3124da6d783c3ba239c59bb175376512f9b..23b10f365bc33449e7a6f0f38c2ab748fe647bc6 100644 (file)
@@ -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;