diff options
| author | Scott Long <scottl@FreeBSD.org> | 2021-08-10 22:41:23 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2021-08-10 22:41:23 +0000 |
| commit | bd9e461cf7f70f2a9b3bd566122bbf4e420d7e17 (patch) | |
| tree | 5e828fc3ac6ba561240e87406bb18b788d4e1810 /sys/dev/mmc | |
| parent | 35547df5c78653b2da030f920323c0357056099f (diff) | |
Diffstat (limited to 'sys/dev/mmc')
| -rw-r--r-- | sys/dev/mmc/mmc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index 29b3645beadd..74d0549ca491 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -412,7 +412,6 @@ static int mmc_release_bus(device_t busdev, device_t dev) { struct mmc_softc *sc; - int err; sc = device_get_softc(busdev); @@ -421,14 +420,9 @@ mmc_release_bus(device_t busdev, device_t dev) panic("mmc: releasing unowned bus."); if (sc->owner != dev) panic("mmc: you don't own the bus. game over."); - MMC_UNLOCK(sc); - err = MMCBR_RELEASE_HOST(device_get_parent(busdev), busdev); - if (err) - return (err); - MMC_LOCK(sc); sc->owner = NULL; MMC_UNLOCK(sc); - return (0); + return (MMCBR_RELEASE_HOST(device_get_parent(busdev), busdev)); } static uint32_t |
