Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Fix uninitiazed variable problem found on zaurus...



details:   https://anonhg.NetBSD.org/src/rev/25d2cc8c8774
branches:  trunk
changeset: 330027:25d2cc8c8774
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jun 18 06:35:19 2014 +0000

description:
Fix uninitiazed variable problem found on zaurus. I don't know why
only zaurus found it.

diffstat:

 sys/dev/mii/brgphy.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ae64d788d93a -r 25d2cc8c8774 sys/dev/mii/brgphy.c
--- a/sys/dev/mii/brgphy.c      Wed Jun 18 04:54:09 2014 +0000
+++ b/sys/dev/mii/brgphy.c      Wed Jun 18 06:35:19 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brgphy.c,v 1.71 2014/06/17 21:37:20 msaitoh Exp $      */
+/*     $NetBSD: brgphy.c,v 1.72 2014/06/18 06:35:19 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.71 2014/06/17 21:37:20 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.72 2014/06/18 06:35:19 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -290,8 +290,8 @@
        else if (device_is_a(parent, "bnx"))
                bsc->sc_isbnx = true;
 
+       dict = device_properties(parent);
        if (bsc->sc_isbge || bsc->sc_isbnx) {
-               dict = device_properties(parent);
                if (!prop_dictionary_get_uint32(dict, "phyflags",
                    &bsc->sc_phyflags))
                        aprint_error_dev(self, "failed to get phyflags\n");



Home | Main Index | Thread Index | Old Index