From: kettenis Date: Sat, 27 Aug 2016 17:32:35 +0000 (+0000) Subject: Initialize vdd to 0 in imxesdhc_bus_power() to avoiud using it uninitialized. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fd24051f8a1dd6446ddb2582e65ed64529c052ec;p=openbsd Initialize vdd to 0 in imxesdhc_bus_power() to avoiud using it uninitialized. --- diff --git a/sys/arch/armv7/imx/imxesdhc.c b/sys/arch/armv7/imx/imxesdhc.c index b6ff3455aaa..556dceeffde 100644 --- a/sys/arch/armv7/imx/imxesdhc.c +++ b/sys/arch/armv7/imx/imxesdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxesdhc.c,v 1.30 2016/08/13 11:08:58 kettenis Exp $ */ +/* $OpenBSD: imxesdhc.c,v 1.31 2016/08/27 17:32:35 kettenis Exp $ */ /* * Copyright (c) 2009 Dale Rahn * Copyright (c) 2006 Uwe Stuehler @@ -654,7 +654,7 @@ int imxesdhc_bus_power(sdmmc_chipset_handle_t sch, uint32_t ocr) { struct imxesdhc_softc *sc = sch; - uint32_t vdd; + uint32_t vdd = 0; ocr &= sc->ocr; if (ISSET(ocr, MMC_OCR_3_2V_3_3V|MMC_OCR_3_3V_3_4V))