artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bafc0b4
)
Initialize vdd to 0 in imxesdhc_bus_power() to avoiud using it uninitialized.
author
kettenis
<kettenis@openbsd.org>
Sat, 27 Aug 2016 17:32:35 +0000
(17:32 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 27 Aug 2016 17:32:35 +0000
(17:32 +0000)
sys/arch/armv7/imx/imxesdhc.c
patch
|
blob
|
history
diff --git
a/sys/arch/armv7/imx/imxesdhc.c
b/sys/arch/armv7/imx/imxesdhc.c
index
b6ff345
..
556dcee
100644
(file)
--- a/
sys/arch/armv7/imx/imxesdhc.c
+++ b/
sys/arch/armv7/imx/imxesdhc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: imxesdhc.c,v 1.3
0 2016/08/13 11:08:58
kettenis Exp $ */
+/* $OpenBSD: imxesdhc.c,v 1.3
1 2016/08/27 17:32:35
kettenis Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@
-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))