patch-2.3.25 linux/net/sched/sch_api.c

Next file: linux/net/sunrpc/clnt.c
Previous file: linux/net/rose/af_rose.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/net/sched/sch_api.c linux/net/sched/sch_api.c
@@ -1133,9 +1133,6 @@
 #ifdef CONFIG_RTNETLINK
 	struct rtnetlink_link *link_p;
 #endif
-#ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *ent;
-#endif
 
 #if PSCHED_CLOCK_SOURCE == PSCHED_CPU
 	if (psched_calibrate_clock() < 0)
@@ -1216,8 +1213,7 @@
 #endif
 
 #ifdef CONFIG_PROC_FS
-	ent = create_proc_entry("net/psched", 0, 0);
-	ent->read_proc = psched_read_proc;
+	create_proc_read_entry("net/psched", 0, 0, psched_read_proc, NULL);
 #endif
 
 	return 0;

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