From 75ee33bd2b9fb55287435c9cdda79940e021d36c Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 19 May 2014 06:54:34 +0000 Subject: [PATCH] unbreak the build when DIAGNOSTIC is not defined allows ramdisk kernels to build again --- sys/dev/usb/uhci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.20.1