Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Avoid unitialized use warning.
details: https://anonhg.NetBSD.org/src/rev/ca8128b76429
branches: trunk
changeset: 997376:ca8128b76429
user: martin <martin%NetBSD.org@localhost>
date: Tue Mar 05 08:17:44 2019 +0000
description:
Avoid unitialized use warning.
diffstat:
sys/dev/usb/if_mue.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6b34eaa9c2e3 -r ca8128b76429 sys/dev/usb/if_mue.c
--- a/sys/dev/usb/if_mue.c Tue Mar 05 08:16:53 2019 +0000
+++ b/sys/dev/usb/if_mue.c Tue Mar 05 08:17:44 2019 +0000
@@ -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 @@
{
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.
Home |
Main Index |
Thread Index |
Old Index