mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
exca->pccarddev should always be non-null now. Only call it when the
device is actually attached.
This commit is contained in:
parent
c55e033cca
commit
e2ae5821fe
1 changed files with 1 additions and 1 deletions
|
|
@ -766,7 +766,7 @@ exca_probe_slots(device_t dev, struct exca_softc *exca, bus_space_tag_t iot,
|
|||
void
|
||||
exca_insert(struct exca_softc *exca)
|
||||
{
|
||||
if (exca->pccarddev != NULL) {
|
||||
if (device_is_attached(exca->pccarddev)) {
|
||||
if (CARD_ATTACH_CARD(exca->pccarddev) != 0)
|
||||
device_printf(exca->dev,
|
||||
"PC Card card activation failed\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue