diff options
| author | fvdl <fvdl@NetBSD.org> | 2003-10-26 20:53:09 +0000 |
|---|---|---|
| committer | fvdl <fvdl@NetBSD.org> | 2003-10-26 20:53:09 +0000 |
| commit | f64435e552d8e34e06fe7282c900f43ab4e3ab79 (patch) | |
| tree | e441d0c32573289f67e93af8992e22259da3c2ec /sys/dev/std | |
| parent | 7a331ee9a961dc5663d37db3a2a27566a0f5fd4a (diff) | |
Fix unitialized variable use.
Diffstat (limited to 'sys/dev/std')
| -rw-r--r-- | sys/dev/std/ieee1212.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/cdefs.h> -__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 <sys/param.h> #include <sys/systm.h> @@ -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]))); |
