Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Remove an unused variable, avoid unused...
details: https://anonhg.NetBSD.org/src/rev/154cb4381b79
branches: trunk
changeset: 789892:154cb4381b79
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 12 12:57:48 2013 +0000
description:
Remove an unused variable, avoid unused variable warning.
diffstat:
sys/arch/sparc64/dev/consinit.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r eea887961062 -r 154cb4381b79 sys/arch/sparc64/dev/consinit.c
--- a/sys/arch/sparc64/dev/consinit.c Thu Sep 12 12:54:39 2013 +0000
+++ b/sys/arch/sparc64/dev/consinit.c Thu Sep 12 12:57:48 2013 +0000
@@ -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 @@
void
consinit(void)
{
- int chosen;
char buffer[128];
const char *consname = "unknown";
@@ -178,8 +177,6 @@
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 @@
consname = buffer;
}
DBPRINT(("console is %s\n", consname));
+#ifndef DEBUG
+ (void)consname;
+#endif
/* Initialize PROM console */
(*cn_tab->cn_probe)(cn_tab);
Home |
Main Index |
Thread Index |
Old Index