patch-2.3.99-pre7 linux/drivers/net/wan/lmc/lmc_main.c

Next file: linux/drivers/net/wan/sdla_chdlc.c
Previous file: linux/drivers/net/wan/lapbether.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/wan/lmc/lmc_main.c linux/drivers/net/wan/lmc/lmc_main.c
@@ -856,11 +856,6 @@
     /*
      *	Switch to common hdlc%d naming. We name by type not by vendor
      */
-#if LINUX_VERSION_CODE < 0x20363
-    dev->name = ((char *) (dev)) + sizeof (struct ppp_device);
-#else
-    dev->name = ((char *) (dev)) + sizeof (struct net_device);
-#endif
     
     dev_alloc_name(dev, "hdlc%d");
 #else
@@ -868,7 +863,6 @@
      * GCOM uses LMC vendor name so that clients can know which card
      * to attach to.
      */
-    dev->name = ((char *) (dev)) + sizeof (struct ppp_device);
     dev_alloc_name(dev, "lmc%d");
 #endif
 

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