patch-2.1.32 linux/net/ax25/af_ax25.c

Next file: linux/net/ax25/ax25_dev.c
Previous file: linux/net/ax25/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.31/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -1797,7 +1797,9 @@
 	ax25_packet_type.type = htons(ETH_P_AX25);
 	dev_add_pack(&ax25_packet_type);
 	register_netdevice_notifier(&ax25_dev_notifier);
+#ifdef CONFIG_SYSCTL
 	ax25_register_sysctl();
+#endif
 
 #ifdef CONFIG_PROC_FS
 	proc_net_register(&proc_ax25_route);
@@ -1828,8 +1830,9 @@
 	ax25_uid_free();
 	ax25_dev_free();
 
+#ifdef CONFIG_SYSCTL
 	ax25_unregister_sysctl();
-
+#endif
 	unregister_netdevice_notifier(&ax25_dev_notifier);
 
 	ax25_packet_type.type = htons(ETH_P_AX25);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov