diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-07 09:08:16 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-07 09:08:16 +0000 |
commit | 51e4a0d4f065fb7696b8ec13a14a91042bcb3fbf (patch) | |
tree | 609c265d6203b3bcaae1ececd7cafb22fd9b8c6e /sys/dev | |
parent | dd4d963ff809c129ddd9e174a7857312f7039fd9 (diff) |
fix aac build after -Wno-uninitialized was removed
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/aac.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index a8ba7c5f38b..1a03e6168b4 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac.c,v 1.91 2020/10/15 00:01:24 krw Exp $ */ +/* $OpenBSD: aac.c,v 1.92 2022/01/07 09:08:15 jsg Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -1279,8 +1279,10 @@ aac_init(struct aac_softc *sc) if (aac_alloc_commands(sc) != 0) break; } - if (sc->total_fibs == 0) - goto out; + if (sc->total_fibs == 0) { + error = ENOMEM; + goto bail_out; + } scsi_iopool_init(&sc->aac_iopool, sc, aac_alloc_command, aac_release_command); @@ -1430,7 +1432,6 @@ aac_init(struct aac_softc *sc) if (state > 0) bus_dmamem_free(sc->aac_dmat, &seg, 1); - out: return (error); } |