From fd24051f8a1dd6446ddb2582e65ed64529c052ec Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 27 Aug 2016 17:32:35 +0000 Subject: [PATCH] Initialize vdd to 0 in imxesdhc_bus_power() to avoiud using it uninitialized. --- sys/arch/armv7/imx/imxesdhc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.20.1