patch-2.4.2 linux/net/lapb/lapb_iface.c

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

diff -u --recursive --new-file v2.4.1/linux/net/lapb/lapb_iface.c linux/net/lapb/lapb_iface.c
@@ -16,7 +16,6 @@
  */
  
 #include <linux/config.h>
-#if defined(CONFIG_LAPB) || defined(CONFIG_LAPB_MODULE)
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/types.h>
@@ -41,7 +40,7 @@
 #include <linux/init.h>
 #include <net/lapb.h>
 
-static lapb_cb *volatile lapb_list = NULL;
+static lapb_cb *volatile lapb_list /* = NULL initially */;
 
 /*
  *	Free an allocated lapb control block. This is done to centralise
@@ -271,7 +270,7 @@
 
 	return LAPB_OK;
 }
-	
+
 int lapb_disconnect_request(void *token)
 {
 	lapb_cb *lapb;
@@ -399,18 +398,15 @@
 EXPORT_SYMBOL(lapb_data_request);
 EXPORT_SYMBOL(lapb_data_received);
 
+static const char banner[] __initdata = KERN_INFO "NET4: LAPB for Linux. Version 0.01 for NET4.0\n";
+
 static int __init lapb_init(void)
 {
-	printk(KERN_INFO "NET4: LAPB for Linux. Version 0.01 for NET4.0\n");
+	printk(banner);
 	return 0;
 }
 
-#ifdef MODULE
 MODULE_AUTHOR("Jonathan Naylor <g4klx@g4klx.demon.co.uk>");
 MODULE_DESCRIPTION("The X.25 Link Access Procedure B link layer protocol");
-#endif
-
 
 module_init(lapb_init);
-
-#endif

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