Skip to contentSkip to conversation

igmp -- proc_net_fops_create

PATCH New Stephen Hemminger 1 participant 1 message Sep 11, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igmp -- proc_net_fops_create

net/ipv4/igmp.c +2 -9
diff -Nru a/net/ipv4/igmp.c b/net/ipv4/igmp.c
@@ -2430,15 +2430,8 @@
 
 int __init igmp_mc_proc_init(void)
 {
-	struct proc_dir_entry *p;
-
-	p = create_proc_entry("igmp", S_IRUGO, proc_net);
-	if (p)
-		p->proc_fops = &igmp_mc_seq_fops;
-
-	p = create_proc_entry("mcfilter", S_IRUGO, proc_net);
-	if (p)
-		p->proc_fops = &igmp_mcf_seq_fops;
+	proc_net_fops_create("igmp", S_IRUGO, &igmp_mc_seq_fops);
+	proc_net_fops_create("mcfilter", S_IRUGO, &igmp_mcf_seq_fops);
 	return 0;
 }
 #endif