Module Name: src
Committed By: martin
Date: Tue Mar 5 08:17:44 UTC 2019
Modified Files:
src/sys/dev/usb: if_mue.c
Log Message:
Avoid unitialized use warning.
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/usb/if_mue.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_mue.c
diff -u src/sys/dev/usb/if_mue.c:1.41 src/sys/dev/usb/if_mue.c:1.42
--- src/sys/dev/usb/if_mue.c:1.41 Wed Feb 6 22:54:41 2019
+++ src/sys/dev/usb/if_mue.c Tue Mar 5 08:17:44 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mue.c,v 1.41 2019/02/06 22:54:41 rin Exp $ */
+/* $NetBSD: if_mue.c,v 1.42 2019/03/05 08:17:44 martin Exp $ */
/* $OpenBSD: if_mue.c,v 1.3 2018/08/04 16:42:46 jsg Exp $ */
/*
@@ -20,7 +20,7 @@
/* Driver for Microchip LAN7500/LAN7800 chipsets. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.41 2019/02/06 22:54:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.42 2019/03/05 08:17:44 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -515,7 +515,7 @@ mue_read_eeprom(struct mue_softc *sc, ui
{
uint32_t val = 0; /* XXX gcc */
uint8_t byte;
- int i, err;
+ int i, err = 0;
/*
* EEPROM pins are muxed with the LED function on LAN7800 device.