diff options
author | imp <imp@FreeBSD.org> | 2002-11-14 05:13:52 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-11-14 05:13:52 +0000 |
commit | 36d61097ba3677edae9c71be1c810fdd016f2325 (patch) | |
tree | 401ec7d83e2affb4dd694aaa1886285ca762e8a0 /sys/dev/pccard | |
parent | 8eb26d87337d61751b7ea8c4e8678c237b0a1c5c (diff) | |
download | FreeBSD-src-36d61097ba3677edae9c71be1c810fdd016f2325.zip FreeBSD-src-36d61097ba3677edae9c71be1c810fdd016f2325.tar.gz |
Remove an impossible condition. pf->dev is always non-null here.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r-- | sys/dev/pccard/pccard.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 338c039..a6b9912 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -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); |