diff options
Diffstat (limited to 'sys/dev/ips')
| -rw-r--r-- | sys/dev/ips/ips.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 0079e4183db5..7a73aee2ef49 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -279,17 +279,7 @@ static int ips_diskdev_init(ips_softc_t *sc) static int ips_diskdev_free(ips_softc_t *sc) { - int i; - int error = 0; - for(i = 0; i < IPS_MAX_NUM_DRIVES; i++){ - if(sc->diskdev[i]) { - error = device_delete_child(sc->dev, sc->diskdev[i]); - if(error) - return error; - } - } - bus_generic_detach(sc->dev); - return 0; + return (bus_generic_detach(sc->dev)); } /* ips_timeout is periodically called to make sure no commands sent |
