Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2013 17:00:26 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250050 - head/sys/dev/hptiop
Message-ID:  <201304291700.r3TH0Q7X095272@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Apr 29 17:00:26 2013
New Revision: 250050
URL: http://svnweb.freebsd.org/changeset/base/250050

Log:
  Add missing braces.
  
  Submitted by:	Sascha Wildner <saw online de>
  Obtained from:	DragonFly
  MFC after:	1 week

Modified:
  head/sys/dev/hptiop/hptiop.c

Modified: head/sys/dev/hptiop/hptiop.c
==============================================================================
--- head/sys/dev/hptiop/hptiop.c	Mon Apr 29 16:58:21 2013	(r250049)
+++ head/sys/dev/hptiop/hptiop.c	Mon Apr 29 17:00:26 2013	(r250050)
@@ -1704,10 +1704,11 @@ static int hptiop_internal_memalloc_mvfr
 			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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304291700.r3TH0Q7X095272>