patch-2.1.22 linux/drivers/net/ppp.c

Next file: linux/drivers/net/scc.c
Previous file: linux/drivers/net/pi2.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.21/linux/drivers/net/ppp.c linux/drivers/net/ppp.c
@@ -388,8 +388,6 @@
 static int
 ppp_init_dev (struct device *dev)
 {
-	int    indx;
-
 	dev->hard_header_len  = PPP_HARD_HDR_LEN;
 
 	/* device INFO */
@@ -3354,6 +3352,8 @@
 	return (struct compressor *) 0;
 }
 
+#ifdef CONFIG_MODULES
+
 static int ppp_register_compressor (struct compressor *cp)
 {
 	struct compressor_link *new;
@@ -3405,6 +3405,8 @@
 	}
 	restore_flags(flags);
 }
+
+#endif
 
 /*************************************************************
  * Module support routines

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