Fix uninitialized variable warnings

This commit is contained in:
ichiro 2003-11-03 03:05:25 +00:00
parent e8ee7a1778
commit 8b115395c7
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rrunner.c,v 1.43 2003/11/02 10:31:06 wiz Exp $ */
/* $NetBSD: rrunner.c,v 1.44 2003/11/03 03:05:25 ichiro Exp $ */
/*
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.43 2003/11/02 10:31:06 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.44 2003/11/03 03:05:25 ichiro Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -3498,7 +3498,7 @@ esh_write_eeprom(sc, addr, value)
u_int32_t value;
{
int i, j;
u_int32_t shifted_value, tmp;
u_int32_t shifted_value, tmp = 0;
/* If the offset hasn't been added, add it. Otherwise pass through */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_tlp_pci.c,v 1.73 2003/06/27 12:25:38 itohy Exp $ */
/* $NetBSD: if_tlp_pci.c,v 1.74 2003/11/03 03:05:25 ichiro Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.73 2003/06/27 12:25:38 itohy Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.74 2003/11/03 03:05:25 ichiro Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -350,7 +350,7 @@ tlp_pci_attach(parent, self, aux)
int ioh_valid, memh_valid, i, j;
const struct tulip_pci_product *tpp;
u_int8_t enaddr[ETHER_ADDR_LEN];
u_int32_t val;
u_int32_t val = 0;
pcireg_t reg;
int pmreg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_wm.c,v 1.59 2003/10/25 18:31:11 christos Exp $ */
/* $NetBSD: if_wm.c,v 1.60 2003/11/03 03:05:25 ichiro Exp $ */
/*
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.59 2003/10/25 18:31:11 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.60 2003/11/03 03:05:25 ichiro Exp $");
#include "bpfilter.h"
#include "rnd.h"
@ -3383,7 +3383,7 @@ static int
wm_gmii_i82544_readreg(struct device *self, int phy, int reg)
{
struct wm_softc *sc = (void *) self;
uint32_t mdic;
uint32_t mdic = 0;
int i, rv;
CSR_WRITE(sc, WMREG_MDIC, MDIC_OP_READ | MDIC_PHYADD(phy) |
@ -3424,7 +3424,7 @@ static void
wm_gmii_i82544_writereg(struct device *self, int phy, int reg, int val)
{
struct wm_softc *sc = (void *) self;
uint32_t mdic;
uint32_t mdic = 0;
int i;
CSR_WRITE(sc, WMREG_MDIC, MDIC_OP_WRITE | MDIC_PHYADD(phy) |