Remove some assigned-to but otherwise unused variables.

This commit is contained in:
simonb 2003-10-31 03:32:19 +00:00
parent b6da47eedd
commit 183066a619
6 changed files with 14 additions and 31 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbmac.c,v 1.11 2003/09/26 13:34:56 simonb Exp $ */
/* $NetBSD: sbmac.c,v 1.12 2003/10/31 03:32:19 simonb Exp $ */
/*
* Copyright 2000, 2001
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sbmac.c,v 1.11 2003/09/26 13:34:56 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: sbmac.c,v 1.12 2003/10/31 03:32:19 simonb Exp $");
#include "bpfilter.h"
#include "opt_inet.h"
@ -832,7 +832,6 @@ sbdma_rx_process(struct sbmac_softc *sc, sbmacdma_t *d)
int hwidx;
sbdmadscr_t *dsc;
struct mbuf *m;
struct ether_header *eh;
int len;
struct ifnet *ifp = &(sc->sc_ethercom.ec_if);
@ -888,7 +887,6 @@ sbdma_rx_process(struct sbmac_softc *sc, sbmacdma_t *d)
m->m_pkthdr.len = m->m_len = len;
ifp->if_ipackets++;
eh = mtod(m, struct ether_header *);
m->m_pkthdr.rcvif = ifp;
@ -951,7 +949,6 @@ sbdma_tx_process(struct sbmac_softc *sc, sbmacdma_t *d)
{
int curidx;
int hwidx;
sbdmadscr_t *dsc;
struct mbuf *m;
struct ifnet *ifp = &(sc->sc_ethercom.ec_if);
@ -986,7 +983,6 @@ sbdma_tx_process(struct sbmac_softc *sc, sbmacdma_t *d)
* Otherwise, get the packet's mbuf ptr back
*/
dsc = &(d->sbdma_dscrtable[curidx]);
m = d->sbdma_ctxtable[curidx];
d->sbdma_ctxtable[curidx] = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: dc.c,v 1.76 2003/09/28 17:25:07 chs Exp $ */
/* $NetBSD: dc.c,v 1.77 2003/10/31 03:32:19 simonb Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.76 2003/09/28 17:25:07 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.77 2003/10/31 03:32:19 simonb Exp $");
/*
* devDC7085.c --
@ -707,7 +707,6 @@ dcparam(tp, t)
struct termios *t;
{
struct dc_softc *sc;
dcregs *dcaddr;
/*
@ -715,7 +714,6 @@ dcparam(tp, t)
* cold_dcparam() for argument checking and execution.
*/
sc = dc_cd.cd_devs[DCUNIT(tp->t_dev)];
dcaddr = (dcregs *)sc->dc_pdma[0].p_addr;
return (cold_dcparam(tp, t, sc));
}
@ -1022,12 +1020,11 @@ dcmctl(dev, bits, how)
struct dc_softc *sc;
dcregs *dcaddr;
int line, mbits;
int b, s;
int s;
int tcr, msr;
line = DCLINE(dev);
sc = dc_cd.cd_devs[DCUNIT(dev)];
b = 1 << line;
dcaddr = (dcregs *)sc->dc_pdma[line].p_addr;
s = spltty();
/* only channel 2 has modem control on a DECstation 2100/3100 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ims332.c,v 1.15 2003/08/07 16:29:09 agc Exp $ */
/* $NetBSD: ims332.c,v 1.16 2003/10/31 03:32:19 simonb Exp $ */
/*-
* Copyright (c) 1992, 1993, 1995
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: ims332.c,v 1.15 2003/08/07 16:29:09 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: ims332.c,v 1.16 2003/10/31 03:32:19 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -283,13 +283,10 @@ int
ims332_video_off(fi)
struct fbinfo *fi;
{
u_char *cmap_bits;
if (fi -> fi_blanked)
return 0;
cmap_bits = (u_char *)fi -> fi_cmap_bits;
ims332_write_register (fi, IMS332_REG_LUT_BASE, 0);
ims332_write_register (fi, IMS332_REG_COLOR_MASK, 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mfb.c,v 1.50 2003/08/07 16:29:09 agc Exp $ */
/* $NetBSD: mfb.c,v 1.51 2003/10/31 03:32:19 simonb Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.50 2003/08/07 16:29:09 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.51 2003/10/31 03:32:19 simonb Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -697,13 +697,10 @@ bt455_video_off(fi)
{
int i;
bt455_regmap_t *regs = (bt455_regmap_t *)(fi -> fi_vdac);
u_char *cmap;
if (fi -> fi_blanked)
return 0;
cmap = (u_char *)(fi -> fi_cmap_bits);
/* Zap colormap entries 0 (background) and 1 (foreground) */
BT455_SELECT_ENTRY(regs, 0);
for (i = 0; i < 6; i++) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.206 2003/09/26 16:00:28 simonb Exp $ */
/* $NetBSD: machdep.c,v 1.207 2003/10/31 03:32:19 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.206 2003/09/26 16:00:28 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.207 2003/10/31 03:32:19 simonb Exp $");
#include "fs_mfs.h"
#include "opt_ddb.h"
@ -207,7 +207,6 @@ mach_init(argc, argv, code, cv, bim, bip)
caddr_t kernend, v;
unsigned size;
#if NKSYMS || defined(DDB) || defined(LKM)
int nsym = 0;
caddr_t ssym = 0;
struct btinfo_symtab *bi_syms;
struct exec *aout; /* XXX backwards compatilbity for DDB */
@ -236,7 +235,6 @@ mach_init(argc, argv, code, cv, bim, bip)
/* Was it a valid bootinfo symtab info? */
if (bi_syms != NULL) {
nsym = bi_syms->nsym;
ssym = (caddr_t)bi_syms->ssym;
esym = (caddr_t)bi_syms->esym;
kernend = (caddr_t)mips_round_page(esym);
@ -247,7 +245,6 @@ mach_init(argc, argv, code, cv, bim, bip)
*/
/* Exec header and symbols? */
else if (aout->a_midmag == 0x07018b00 && (i = aout->a_syms) != 0) {
nsym = *(long *)end = i;
ssym = end;
i += (*(long *)(end + i + 4) + 3) & ~3; /* strings */
esym = end + i + 4;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_sysctl.c,v 1.151 2003/10/21 22:55:47 thorpej Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.152 2003/10/31 03:32:20 simonb Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.151 2003/10/21 22:55:47 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.152 2003/10/31 03:32:20 simonb Exp $");
#include "opt_ddb.h"
#include "opt_insecure.h"
@ -1756,13 +1756,12 @@ sysctl_dolwp(int *name, u_int namelen, void *vwhere, size_t *sizep)
struct proc *p;
struct lwp *l;
char *where, *dp;
int type, pid, elem_size, elem_count;
int pid, elem_size, elem_count;
int buflen, needed, error;
dp = where = vwhere;
buflen = where != NULL ? *sizep : 0;
error = needed = 0;
type = name[0];
if (namelen != 4)
return (EINVAL);