Remove extra check for provider being closed.

We already checked for that earlier, and since we hold topology lock
it could not change.

MFC after:	1 week
This commit is contained in:
Alexander Motin 2020-01-02 20:30:53 +00:00
parent aa2ad8c1e6
commit 0aabbeff36

View File

@ -1048,8 +1048,7 @@ g_eli_destroy(struct g_eli_softc *sc, boolean_t force)
bzero(sc, sizeof(*sc));
free(sc, M_ELI);
if (pp == NULL || (pp->acr == 0 && pp->acw == 0 && pp->ace == 0))
G_ELI_DEBUG(0, "Device %s destroyed.", gp->name);
G_ELI_DEBUG(0, "Device %s destroyed.", gp->name);
g_wither_geom_close(gp, ENXIO);
return (0);