Remove an unused variable, avoid unused variable warning.
This commit is contained in:
parent
bf471dab7e
commit
77cc2c9e6f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue