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
This commit is contained in:
Li-Wen Hsu 2019-05-29 18:11:17 +00:00
parent 33da49cd2e
commit 6c9e56b231
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348366

View File

@ -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;