Module Name:    src
Committed By:   martin
Date:           Mon Jan  9 15:15:40 UTC 2012

Modified Files:
        src/sys/arch/hp700/hp700: mainbus.c

Log Message:
Avoid a warning in kernels w/o LCD support


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/arch/hp700/hp700/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/hp700/mainbus.c
diff -u src/sys/arch/hp700/hp700/mainbus.c:1.79 src/sys/arch/hp700/hp700/mainbus.c:1.80
--- src/sys/arch/hp700/hp700/mainbus.c:1.79	Wed Feb 23 08:27:17 2011
+++ src/sys/arch/hp700/hp700/mainbus.c	Mon Jan  9 15:15:40 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.79 2011/02/23 08:27:17 skrll Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.80 2012/01/09 15:15:40 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.79 2011/02/23 08:27:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.80 2012/01/09 15:15:40 martin Exp $");
 
 #include "locators.h"
 #include "power.h"
@@ -1359,7 +1359,9 @@ mbattach(device_t parent, device_t self,
 	struct mainbus_softc *sc = device_private(self);
 	struct confargs nca;
 	bus_space_handle_t ioh;
+#if NLCD > 0
 	int err;
+#endif
 
 	sc->sc_dv = self;
 	mb_attached = 1;

Reply via email to