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:
parent
a04175a895
commit
e9223ba912
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user