diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-05-19 06:54:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-05-19 06:54:35 +0000 |
commit | 3035b5a48cbd4323abb185da6564c311caf2abe5 (patch) | |
tree | dbce9d291d57872fa95796e0cd5e51b17a0c7d79 | |
parent | 26e6a219611495253631d497067b484922481524 (diff) |
unbreak the build when DIAGNOSTIC is not defined
allows ramdisk kernels to build again
-rw-r--r-- | sys/dev/usb/uhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 04d6f0f2dd6..6f481f04736 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhci.c,v 1.119 2014/05/18 17:10:27 mpi Exp $ */ +/* $OpenBSD: uhci.c,v 1.120 2014/05/19 06:54:34 jsg Exp $ */ /* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ @@ -572,7 +572,9 @@ uhci_activate(struct device *self, int act) int uhci_detach(struct device *self, int flags) { +#ifdef DIAGNOSTIC struct uhci_softc *sc = (struct uhci_softc *)self; +#endif int rv; rv = config_detach_children(self, flags); |