aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ips
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2025-01-02 18:22:35 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2025-01-02 18:22:35 +0000
commit4e62c3cafa4c4e41efd6f87b7fe559cf819cf3e4 (patch)
tree972b75c28e8e8f26c7f940e17ac9eccc373607ca /sys/dev/ips
parentcf416f56eb73006b32f9279da6a848299ede3f1d (diff)
Diffstat (limited to 'sys/dev/ips')
-rw-r--r--sys/dev/ips/ips.c12
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