Module Name: src Committed By: skrll Date: Wed Dec 18 12:54:35 UTC 2013
Modified Files: src/sys/arch/arm/omap: ti_iic.c Log Message: Initialise len in ti_iic_do_{read,write}. Is this worth a pullups? To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/omap/ti_iic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/omap/ti_iic.c diff -u src/sys/arch/arm/omap/ti_iic.c:1.4 src/sys/arch/arm/omap/ti_iic.c:1.5 --- src/sys/arch/arm/omap/ti_iic.c:1.4 Thu Apr 25 13:04:27 2013 +++ src/sys/arch/arm/omap/ti_iic.c Wed Dec 18 12:54:35 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ti_iic.c,v 1.4 2013/04/25 13:04:27 rkujawa Exp $ */ +/* $NetBSD: ti_iic.c,v 1.5 2013/12/18 12:54:35 skrll Exp $ */ /* * Copyright (c) 2013 Manuel Bouyer. All rights reserved. @@ -50,7 +50,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ti_iic.c,v 1.4 2013/04/25 13:04:27 rkujawa Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ti_iic.c,v 1.5 2013/12/18 12:54:35 skrll Exp $"); #include "opt_omap.h" #include "locators.h" @@ -559,7 +559,7 @@ ti_iic_handle_intr(struct ti_iic_softc * void ti_iic_do_read(struct ti_iic_softc *sc, uint32_t stat) { - int len; + int len = 0; KASSERT(mutex_owned(&sc->sc_mtx)); DPRINTF(("ti_iic_do_read stat %#x\n", stat)); @@ -586,7 +586,7 @@ ti_iic_do_read(struct ti_iic_softc *sc, void ti_iic_do_write(struct ti_iic_softc *sc, uint32_t stat) { - int len; + int len = 0; DPRINTF(("ti_iic_do_write stat %#x\n", stat)); KASSERT(mutex_owned(&sc->sc_mtx));