patch-2.3.99-pre7 linux/drivers/net/slip.c
Next file: linux/drivers/net/smc-mca.c
Previous file: linux/drivers/net/skfp/skfddi.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue May 2 12:41:00 2000
- Orig file:
v2.3.99-pre6/linux/drivers/net/slip.c
- Orig date:
Sun Feb 20 21:12:39 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/slip.c linux/drivers/net/slip.c
@@ -89,7 +89,6 @@
typedef struct slip_ctrl {
- char if_name[16]; /* "sl0\0" .. "sl99999\0" */
struct slip ctrl; /* SLIP things */
struct net_device dev; /* the device */
} slip_ctrl_t;
@@ -805,8 +804,7 @@
sl->dev = &slp->dev;
spin_lock_init(&sl->lock);
sl->mode = SL_MODE_DEFAULT;
- sprintf(slp->if_name, "sl%d", i);
- slp->dev.name = slp->if_name;
+ sprintf(slp->dev.name, "sl%d", i);
slp->dev.base_addr = i;
slp->dev.priv = (void*)sl;
slp->dev.init = sl_init;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)