summaryrefslogtreecommitdiff
path: root/sys/dev/pci/nviic.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-01-11 14:41:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-01-11 14:41:09 +0000
commitf8a12ff130aab34e827e0228550f2a9844cc4e03 (patch)
tree7ffdac864d39a60ebec5b86d9e19924f8c6d1b54 /sys/dev/pci/nviic.c
parent52a3a34a7ab8524a2a3c10d2199979b2b8bc5029 (diff)
Fix compilation without NVIIC_DEBUG defined, ok dlg@
Diffstat (limited to 'sys/dev/pci/nviic.c')
-rw-r--r--sys/dev/pci/nviic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/nviic.c b/sys/dev/pci/nviic.c
index 2a0e3f4b1f6..e957fe2790c 100644
--- a/sys/dev/pci/nviic.c
+++ b/sys/dev/pci/nviic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nviic.c,v 1.3 2006/01/11 08:19:04 dlg Exp $ */
+/* $OpenBSD: nviic.c,v 1.4 2006/01/11 14:41:08 jsg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -194,7 +194,9 @@ nviic_i2c_exec(void *arg, i2c_op_t op, i2c_addr_t addr,
const void *cmdbuf, size_t cmdlen, void *buf, size_t len, int flags)
{
struct nviic_controller *nc = arg;
+#ifdef NVIIC_DEBUG
struct nviic_softc *sc = nc->nc_sc;
+#endif
u_int8_t protocol;
u_int8_t *b;
u_int8_t sts;