diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2003-10-31 18:32:15 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2003-10-31 18:32:15 +0000 |
| commit | 9bf40ede4a299f315bc4b0ae5329631b8c7dc271 (patch) | |
| tree | 4d9e6671d486576767506230a4240131526fea49 /sys/dev/xe | |
| parent | dc6279b887bf4473d77b898631f74466b5f7a094 (diff) | |
Notes
Diffstat (limited to 'sys/dev/xe')
| -rw-r--r-- | sys/dev/xe/if_xe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c index 6158e7d30823..e4fc724c8762 100644 --- a/sys/dev/xe/if_xe.c +++ b/sys/dev/xe/if_xe.c @@ -219,8 +219,7 @@ xe_attach (device_t dev) /* Initialise the ifnet structure */ scp->ifp->if_softc = scp; - scp->ifp->if_name = "xe"; - scp->ifp->if_unit = device_get_unit(dev); + if_initname(scp->ifp, device_get_name(dev), device_get_unit(dev)); scp->ifp->if_timer = 0; scp->ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST); scp->ifp->if_linkmib = &scp->mibdata; |
