From 41e6d507ba45396ff6b0688de7b5191901191fc3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 14 Nov 2002 05:13:52 +0000 Subject: [PATCH] Remove an impossible condition. pf->dev is always non-null here. --- sys/dev/pccard/pccard.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 338c039ebdf..a6b99123c90 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);