diff options
Diffstat (limited to 'usr.sbin/pcidump/pcidump.c')
-rw-r--r-- | usr.sbin/pcidump/pcidump.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c index aafe3fe8bba..3148a8732ee 100644 --- a/usr.sbin/pcidump/pcidump.c +++ b/usr.sbin/pcidump/pcidump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcidump.c,v 1.67 2021/10/24 21:24:19 deraadt Exp $ */ +/* $OpenBSD: pcidump.c,v 1.68 2021/10/25 19:54:29 kn Exp $ */ /* * Copyright (c) 2006, 2007 David Gwynne <loki@animata.net> @@ -377,7 +377,7 @@ print_vpd(const uint8_t *buf, size_t len) const struct pci_vpd *vpd; char key0[8]; char key1[8]; - size_t vlen, i; + size_t vlen; while (len > 0) { if (len < sizeof(*vpd)) @@ -411,7 +411,6 @@ dump_vpd(int bus, int dev, int func) uint32_t data[64]; /* XXX this can be up to 32k of data */ uint8_t *buf = (uint8_t *)data; size_t len = sizeof(data); - size_t i; bzero(&io, sizeof(io)); io.pv_sel.pc_bus = bus; |