Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb propagate pullup-782 for NetBSD-8 to HEAD (gcc u...



details:   https://anonhg.NetBSD.org/src/rev/a2f119126f2a
branches:  trunk
changeset: 322155:a2f119126f2a
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 20 11:14:40 2018 +0000

description:
propagate pullup-782 for NetBSD-8 to HEAD (gcc uninitialized)

diffstat:

 sys/dev/usb/if_axe.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 3ed733130d30 -r a2f119126f2a sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c      Fri Apr 20 10:43:38 2018 +0000
+++ b/sys/dev/usb/if_axe.c      Fri Apr 20 11:14:40 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axe.c,v 1.84 2018/01/21 13:57:11 skrll Exp $        */
+/*     $NetBSD: if_axe.c,v 1.85 2018/04/20 11:14:40 christos Exp $     */
 /*     $OpenBSD: if_axe.c,v 1.137 2016/04/13 11:03:37 mpi Exp $ */
 
 /*
@@ -87,7 +87,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.84 2018/01/21 13:57:11 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.85 2018/04/20 11:14:40 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -592,6 +592,8 @@
        int gpio0, ledmode, phymode;
        uint16_t eeprom, val;
 
+       eeprom = 0;     /* XXX gcc -Wuninitialized */
+
        axe_cmd(sc, AXE_CMD_SROM_WR_ENABLE, 0, 0, NULL);
        /* XXX magic */
        axe_cmd(sc, AXE_CMD_SROM_READ, 0, 0x0017, &eeprom);



Home | Main Index | Thread Index | Old Index