Initialize uninitialized variable; from maxv's brainy list. Fixes slipup
in -r1.30 back in 2007.
This commit is contained in:
parent
c692eec272
commit
0d4abda406
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sgec.c,v 1.40 2013/10/24 13:15:12 martin Exp $ */
|
||||
/* $NetBSD: sgec.c,v 1.41 2015/08/30 04:02:06 dholland Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
|
||||
*
|
||||
|
@ -45,7 +45,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.40 2013/10/24 13:15:12 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.41 2015/08/30 04:02:06 dholland Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
|
||||
|
@ -332,7 +332,7 @@ zestart(struct ifnet *ifp)
|
|||
int nexttx, starttx;
|
||||
int len, i, totlen, error;
|
||||
int old_inq = sc->sc_inq;
|
||||
uint16_t orword, tdr;
|
||||
uint16_t orword, tdr = 0;
|
||||
bus_dmamap_t map;
|
||||
|
||||
while (sc->sc_inq < (TXDESCS - 1)) {
|
||||
|
|
Loading…
Reference in New Issue