Module Name:    src
Committed By:   christos
Date:           Fri Apr 20 11:14:40 UTC 2018

Modified Files:
        src/sys/dev/usb: if_axe.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/dev/usb/if_axe.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/dev/usb/if_axe.c
diff -u src/sys/dev/usb/if_axe.c:1.84 src/sys/dev/usb/if_axe.c:1.85
--- src/sys/dev/usb/if_axe.c:1.84	Sun Jan 21 08:57:11 2018
+++ src/sys/dev/usb/if_axe.c	Fri Apr 20 07:14:40 2018
@@ -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 @@ axe_ax88178_init(struct axe_softc *sc)
 	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);

Reply via email to