mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ifp->if_name can't be null when we just assigned a static string to it.
This commit is contained in:
parent
9c63e9dbd7
commit
0f2f39c865
1 changed files with 0 additions and 5 deletions
|
|
@ -143,11 +143,6 @@ awi_pccard_attach(device_t dev)
|
|||
|
||||
ifp->if_name = "awi";
|
||||
ifp->if_unit = device_get_unit(dev);
|
||||
if (ifp->if_name == NULL) {
|
||||
printf("awi%d: awi_pccard_attach: cannot get device name\n",
|
||||
device_get_unit(dev));
|
||||
goto fail;
|
||||
}
|
||||
snprintf(sc->sc_dev.dv_xname, sizeof(sc->sc_dev.dv_xname),
|
||||
"%s%d", ifp->if_name, ifp->if_unit);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue