summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-04-29 17:00:26 +0000
committerdelphij <delphij@FreeBSD.org>2013-04-29 17:00:26 +0000
commit82690df1c882c70d04ebbdbbcf1c402c538c3825 (patch)
tree2574f09c1505b348bef8c428b43779d40f5c6eb4
parentc452d7eb5d2237263020c50cd8346012b075613d (diff)
downloadFreeBSD-src-82690df1c882c70d04ebbdbbcf1c402c538c3825.zip
FreeBSD-src-82690df1c882c70d04ebbdbbcf1c402c538c3825.tar.gz
Add missing braces.
Submitted by: Sascha Wildner <saw online de> Obtained from: DragonFly MFC after: 1 week
-rw-r--r--sys/dev/hptiop/hptiop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c
index d7a17c8..83f72c2 100644
--- a/sys/dev/hptiop/hptiop.c
+++ b/sys/dev/hptiop/hptiop.c
@@ -1704,10 +1704,11 @@ static int hptiop_internal_memalloc_mvfrey(struct hpt_iop_hba *hba)
hba->u.mvfrey.internal_mem_size,
hptiop_mvfrey_map_ctlcfg, hba, 0)) {
device_printf(hba->pcidev, "bus_dmamap_load failed!\n");
- if (hba->ctlcfg_dmat)
+ if (hba->ctlcfg_dmat) {
bus_dmamem_free(hba->ctlcfg_dmat,
hba->ctlcfg_ptr, hba->ctlcfg_dmamap);
bus_dma_tag_destroy(hba->ctlcfg_dmat);
+ }
return -1;
}
OpenPOWER on IntegriCloud