patch-2.3.25 linux/net/netlink/af_netlink.c

Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/irda/irproc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/net/netlink/af_netlink.c linux/net/netlink/af_netlink.c
@@ -967,9 +967,6 @@
 
 void netlink_proto_init(struct net_proto *pro)
 {
-#ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *ent;
-#endif
 	struct sk_buff *dummy_skb;
 
 	if (sizeof(struct netlink_skb_parms) > sizeof(dummy_skb->cb)) {
@@ -978,7 +975,6 @@
 	}
 	sock_register(&netlink_family_ops);
 #ifdef CONFIG_PROC_FS
-	ent = create_proc_entry("net/netlink", 0, 0);
-	ent->read_proc = netlink_read_proc;
+	create_proc_read_entry("net/netlink", 0, 0, netlink_read_proc, NULL);
 #endif
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)