Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/omap Initialise len in ti_iic_do_{read, write}.



details:   https://anonhg.NetBSD.org/src/rev/e80fd7562730
branches:  trunk
changeset: 325324:e80fd7562730
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Dec 18 12:54:35 2013 +0000

description:
Initialise len in ti_iic_do_{read,write}.

Is this worth a pullups?

diffstat:

 sys/arch/arm/omap/ti_iic.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r a9e1f24c3c8a -r e80fd7562730 sys/arch/arm/omap/ti_iic.c
--- a/sys/arch/arm/omap/ti_iic.c        Wed Dec 18 12:54:01 2013 +0000
+++ b/sys/arch/arm/omap/ti_iic.c        Wed Dec 18 12:54:35 2013 +0000
@@ -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 @@
 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 @@
 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));



Home | Main Index | Thread Index | Old Index