Module Name: src
Committed By: martin
Date: Thu Sep 12 12:57:48 UTC 2013
Modified Files:
src/sys/arch/sparc64/dev: consinit.c
Log Message:
Remove an unused variable, avoid unused variable warning.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/sparc64/dev/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/sparc64/dev/consinit.c
diff -u src/sys/arch/sparc64/dev/consinit.c:1.26 src/sys/arch/sparc64/dev/consinit.c:1.27
--- src/sys/arch/sparc64/dev/consinit.c:1.26 Tue Jul 31 13:35:48 2012
+++ src/sys/arch/sparc64/dev/consinit.c Thu Sep 12 12:57:48 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: consinit.c,v 1.26 2012/07/31 13:35:48 martin Exp $ */
+/* $NetBSD: consinit.c,v 1.27 2013/09/12 12:57:48 martin Exp $ */
/*-
* Copyright (c) 1999 Eduardo E. Horvath
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.26 2012/07/31 13:35:48 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.27 2013/09/12 12:57:48 martin Exp $");
#include "opt_ddb.h"
#include "pcons.h"
@@ -169,7 +169,6 @@ int prom_stdout_node;
void
consinit(void)
{
- int chosen;
char buffer[128];
const char *consname = "unknown";
@@ -178,8 +177,6 @@ consinit(void)
if (cn_tab != &consdev_prom)
return;
- chosen = prom_finddevice("/chosen");
-
if ((prom_stdin_node = prom_instance_to_package(prom_stdin())) == 0) {
printf("WARNING: no PROM stdin\n");
}
@@ -210,6 +207,9 @@ consinit(void)
consname = buffer;
}
DBPRINT(("console is %s\n", consname));
+#ifndef DEBUG
+ (void)consname;
+#endif
/* Initialize PROM console */
(*cn_tab->cn_probe)(cn_tab);