Module Name:    src
Committed By:   martin
Date:           Wed Mar 12 08:36:59 UTC 2014

Modified Files:
        src/sys/arch/ia64/ia64: consinit.c

Log Message:
ifdef variable like their use


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/ia64/consinit.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/ia64/ia64/consinit.c
diff -u src/sys/arch/ia64/ia64/consinit.c:1.2 src/sys/arch/ia64/ia64/consinit.c:1.3
--- src/sys/arch/ia64/ia64/consinit.c:1.2	Mon Jun 18 01:40:55 2012
+++ src/sys/arch/ia64/ia64/consinit.c	Wed Mar 12 08:36:59 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: consinit.c,v 1.2 2012/06/18 01:40:55 kiyohara Exp $	*/
+/*	$NetBSD: consinit.c,v 1.3 2014/03/12 08:36:59 martin Exp $	*/
 /*
  * Copyright (c) 2009 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.2 2012/06/18 01:40:55 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.3 2014/03/12 08:36:59 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -123,7 +123,9 @@ static void
 pcdp_cninit(struct consdev *cn)
 {
 	struct dig64_hcdp_table *tbl;
+#if NVGA > 0
 	union dev_desc *desc;
+#endif
 	uint64_t hcdp;
 	int n, m;
 
@@ -135,8 +137,8 @@ pcdp_cninit(struct consdev *cn)
 	n = 0;
 	m = tbl->length - sizeof(struct dig64_hcdp_table);
 	while (n < m) {
-		desc = (union dev_desc *)((char *)tbl->entry + n);
 #if NVGA > 0
+		desc = (union dev_desc *)((char *)tbl->entry + n);
 
 /* not yet... */
 /* Our VGA is Framebuffer? */

Reply via email to