patch-2.1.32 linux/net/netrom/af_netrom.c

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

diff -u --recursive --new-file v2.1.31/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -1376,7 +1376,9 @@
 	for (i = 0; i < 4; i++)
 		register_netdev(&dev_nr[i]);
 
+#ifdef CONFIG_SYSCTL
 	nr_register_sysctl();
+#endif
 
 #ifdef CONFIG_PROC_FS
 	proc_net_register(&proc_net_nr);
@@ -1411,8 +1413,9 @@
 
 	unregister_netdevice_notifier(&nr_dev_notifier);
 
+#ifdef CONFIG_SYSCTL
 	nr_unregister_sysctl();
-
+#endif
 	sock_unregister(AF_NETROM);
 
 	for (i = 0; i < 4; i++) {

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