Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Workaround bogus GCC warning...



details:   https://anonhg.NetBSD.org/src/rev/09cce6af8dd4
branches:  trunk
changeset: 319215:09cce6af8dd4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon May 21 22:04:27 2018 +0000

description:
Workaround bogus GCC warning about an uninitialized variable

diffstat:

 sys/arch/arm/sunxi/sunxi_mmc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c12dbc93317f -r 09cce6af8dd4 sys/arch/arm/sunxi/sunxi_mmc.c
--- a/sys/arch/arm/sunxi/sunxi_mmc.c    Mon May 21 14:48:55 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mmc.c    Mon May 21 22:04:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mmc.c,v 1.23 2018/05/17 23:07:47 jmcneill Exp $ */
+/* $NetBSD: sunxi_mmc.c,v 1.24 2018/05/21 22:04:27 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_sunximmc.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.23 2018/05/17 23:07:47 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.24 2018/05/21 22:04:27 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -475,7 +475,7 @@
 sunxi_mmc_set_clock(struct sunxi_mmc_softc *sc, u_int freq, bool ddr)
 {
        const struct sunxi_mmc_delay *delays;
-       int error, timing;
+       int error, timing = SUNXI_MMC_TIMING_400K;
 
        if (sc->sc_config->delays) {
                if (freq <= 400) {



Home | Main Index | Thread Index | Old Index