From e9223ba912361057c5ef11092db3baca1a275d7e Mon Sep 17 00:00:00 2001 From: lwhsu Date: Wed, 29 May 2019 18:11:17 +0000 Subject: [PATCH] Add the likely missing braces in ips(4). This is found by gcc warning that the code is not guarded by the if clause and has misleading indentation. Approved by: scottl MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20427 --- sys/dev/ips/ips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index d1a93def519..63ca8a05355 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -287,10 +287,11 @@ 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]) + if(sc->diskdev[i]) { error = device_delete_child(sc->dev, sc->diskdev[i]); if(error) return error; + } } bus_generic_detach(sc->dev); return 0; -- 2.45.2