mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Remove an impossible condition. pf->dev is always non-null here.
This commit is contained in:
parent
d0c36f94f7
commit
41e6d507ba
1 changed files with 1 additions and 2 deletions
|
|
@ -277,8 +277,7 @@ pccard_detach_card(device_t dev)
|
|||
if (pf->cfe != NULL)
|
||||
pccard_function_disable(pf);
|
||||
pccard_function_free(pf);
|
||||
if (pf->dev != NULL)
|
||||
device_delete_child(dev, pf->dev);
|
||||
device_delete_child(dev, pf->dev);
|
||||
}
|
||||
if (sc->sc_enabled_count == 0)
|
||||
POWER_DISABLE_SOCKET(device_get_parent(dev), dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue