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/b5cefa4fb5ab
branches: trunk
changeset: 449396:b5cefa4fb5ab
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 bd7368acc59a -r b5cefa4fb5ab 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