Remove variable that is only assigned too but not referenced.

This commit is contained in:
simonb 2003-01-20 07:20:01 +00:00
parent b4cf696706
commit bbd9776970
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_command.c,v 1.66 2002/08/26 11:34:28 scw Exp $ */
/* $NetBSD: db_command.c,v 1.67 2003/01/20 07:20:01 simonb Exp $ */
/*
* Mach Operating System
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.66 2002/08/26 11:34:28 scw Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.67 2003/01/20 07:20:01 simonb Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@ -300,7 +300,7 @@ db_cmd_search(const char *name, const struct db_command *table,
static void
db_cmd_list(const struct db_command *table)
{
int i, j, w, columns, lines, width=0, items, numcmds;
int i, j, w, columns, lines, width=0, numcmds;
const char *p;
for (numcmds = 0; table[numcmds].name != NULL; numcmds++) {
@ -309,7 +309,6 @@ db_cmd_list(const struct db_command *table)
width = w;
}
width = DB_NEXT_TAB(width);
items = 0;
columns = db_max_width / width;
if (columns == 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ac97.c,v 1.38 2002/12/26 20:56:52 matt Exp $ */
/* $NetBSD: ac97.c,v 1.39 2003/01/20 07:22:15 simonb Exp $ */
/* $OpenBSD: ac97.c,v 1.8 2000/07/19 09:01:35 csapuntz Exp $ */
/*
@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.38 2002/12/26 20:56:52 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.39 2003/01/20 07:22:15 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -659,7 +659,6 @@ ac97_read(as, reg, val)
u_int8_t reg;
u_int16_t *val;
{
int error;
if (as->host_flags & AC97_HOST_DONT_READ &&
(reg != AC97_REG_VENDOR_ID1 && reg != AC97_REG_VENDOR_ID2 &&
@ -668,7 +667,7 @@ ac97_read(as, reg, val)
return;
}
if ((error = as->host_if->read(as->host_if->arg, reg, val))) {
if (as->host_if->read(as->host_if->arg, reg, val)) {
*val = as->shadow_reg[reg >> 1];
}
}