From f64435e552d8e34e06fe7282c900f43ab4e3ab79 Mon Sep 17 00:00:00 2001 From: fvdl Date: Sun, 26 Oct 2003 20:53:09 +0000 Subject: Fix unitialized variable use. --- sys/dev/std/ieee1212.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/std') diff --git a/sys/dev/std/ieee1212.c b/sys/dev/std/ieee1212.c index cbb04db6db9..e2f73c4d8d1 100644 --- a/sys/dev/std/ieee1212.c +++ b/sys/dev/std/ieee1212.c @@ -1,4 +1,4 @@ -/* $NetBSD: ieee1212.c,v 1.6 2003/07/14 15:47:27 lukem Exp $ */ +/* $NetBSD: ieee1212.c,v 1.7 2003/10/26 20:53:09 fvdl Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ieee1212.c,v 1.6 2003/07/14 15:47:27 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ieee1212.c,v 1.7 2003/10/26 20:53:09 fvdl Exp $"); #include #include @@ -756,7 +756,6 @@ p1212_parse_textdir(struct p1212_com *com, u_int32_t *addr) u_int32_t *t, entry, new; u_int16_t crclen, crc, crc1, romcrc; u_int8_t type, val; - int i, size; /* @@ -766,6 +765,7 @@ p1212_parse_textdir(struct p1212_com *com, u_int32_t *addr) com->text = NULL; size = sizeof(struct p1212_text *); + t = addr; crclen = P1212_DIRENT_GET_LEN((ntohl(t[0]))); romcrc = P1212_DIRENT_GET_CRC((ntohl(t[0]))); -- cgit