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 t...



details:   https://anonhg.NetBSD.org/src/rev/6f4b4a8f024e
branches:  trunk
changeset: 318385:6f4b4a8f024e
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 e2c3e3200317 -r 6f4b4a8f024e 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