patch-2.4.4 linux/drivers/net/tokenring/madgemc.c

Next file: linux/drivers/net/tokenring/olympic.c
Previous file: linux/drivers/net/tokenring/lanstreamer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/net/tokenring/madgemc.c linux/drivers/net/tokenring/madgemc.c
@@ -17,7 +17,7 @@
  *	16-Jan-00	AF	Created
  *
  */
-static const char *version = "madgemc.c: v0.91 23/01/2000 by Adam Fritzler\n";
+static const char version[] = "madgemc.c: v0.91 23/01/2000 by Adam Fritzler\n";
 
 #include <linux/module.h>
 #include <linux/mca.h>
@@ -61,7 +61,7 @@
 
 	struct madgemc_card *next;
 };
-static struct madgemc_card *madgemc_card_list = NULL;
+static struct madgemc_card *madgemc_card_list;
 
 
 int madgemc_probe(void);
@@ -155,7 +155,7 @@
 
 int __init madgemc_probe(void)
 {	
-	static int versionprinted = 0;
+	static int versionprinted;
 	struct net_device *dev;
 	struct net_local *tp;
 	struct madgemc_card *card;
@@ -525,7 +525,7 @@
  */
 static void madgemc_setregpage(struct net_device *dev, int page)
 {	
-	static int reg1 = 0;
+	static int reg1;
 
 	reg1 = inb(dev->base_addr + MC_CONTROL_REG1);
 	if ((page == 0) && (reg1 & MC_CONTROL_REG1_SRSX)) {

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