diff options
Diffstat (limited to 'sys/pci/if_sf.c')
-rw-r--r-- | sys/pci/if_sf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c index fcd05ff..6642809 100644 --- a/sys/pci/if_sf.c +++ b/sys/pci/if_sf.c @@ -770,8 +770,7 @@ sf_attach(dev) ifp = &sc->arpcom.ac_if; ifp->if_softc = sc; - ifp->if_unit = unit; - ifp->if_name = "sf"; + if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = sf_ioctl; |