Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/bi Eliminate unused variable
details: https://anonhg.NetBSD.org/src/rev/a9d182f95311
branches: trunk
changeset: 790864:a9d182f95311
user: martin <martin%NetBSD.org@localhost>
date: Fri Oct 25 15:11:32 2013 +0000
description:
Eliminate unused variable
diffstat:
sys/dev/bi/if_ni.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r 50533b80e5a5 -r a9d182f95311 sys/dev/bi/if_ni.c
--- a/sys/dev/bi/if_ni.c Fri Oct 25 15:11:21 2013 +0000
+++ b/sys/dev/bi/if_ni.c Fri Oct 25 15:11:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ni.c,v 1.40 2010/11/13 13:51:57 uebayasi Exp $ */
+/* $NetBSD: if_ni.c,v 1.41 2013/10/25 15:11:32 martin Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
*
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.40 2010/11/13 13:51:57 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.41 2013/10/25 15:11:32 martin Exp $");
#include "opt_inet.h"
@@ -233,7 +233,7 @@
struct ni_msg *msg;
struct ni_ptdb *ptdb;
void *va;
- int i, j, s, res;
+ int i, j, s;
u_short type;
sc->sc_dev = self;
@@ -346,7 +346,7 @@
ni_getpgs(sc, NMSGBUF * 512, &va, 0);
for (i = 0; i < NMSGBUF; i++) {
msg = (void *)((char *)va + i * 512);
- res = INSQTI(msg, &fqb->nf_mforw);
+ INSQTI(msg, &fqb->nf_mforw);
}
WAITREG(NI_PCR, PCR_OWN);
NI_WREG(NI_PCR, PCR_FREEQNE|PCR_MFREEQ|PCR_OWN);
@@ -369,7 +369,7 @@
bbd[i * NTXFRAGS + j].nb_status = 0;
data->bufs[j]._index = i * NTXFRAGS + j;
}
- res = INSQTI(data, &fqb->nf_dforw);
+ INSQTI(data, &fqb->nf_dforw);
}
WAITREG(NI_PCR, PCR_OWN);
NI_WREG(NI_PCR, PCR_FREEQNE|PCR_DFREEQ|PCR_OWN);
@@ -391,7 +391,7 @@
if (ni_add_rxbuf(sc, data, idx))
panic("niattach: ni_add_rxbuf: out of mbufs");
- res = INSQTI(data, &fqb->nf_rforw);
+ INSQTI(data, &fqb->nf_rforw);
}
WAITREG(NI_PCR, PCR_OWN);
NI_WREG(NI_PCR, PCR_FREEQNE|PCR_RFREEQ|PCR_OWN);
@@ -409,7 +409,7 @@
((struct ni_param *)&msg->nm_text[0])->np_flags = NP_PAD;
endwait = retry = 0;
- res = INSQTI(msg, &gvp->nc_forw0);
+ INSQTI(msg, &gvp->nc_forw0);
retry: WAITREG(NI_PCR, PCR_OWN);
NI_WREG(NI_PCR, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);
@@ -432,7 +432,7 @@
msg->nm_len = sizeof(struct ni_param) + 6;
msg->nm_opcode2 = NI_RCCNTR;
- res = INSQTI(msg, &gvp->nc_forw0);
+ INSQTI(msg, &gvp->nc_forw0);
WAITREG(NI_PCR, PCR_OWN);
NI_WREG(NI_PCR, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);
@@ -450,7 +450,7 @@
ptdb->np_index = 1;
ptdb->np_fque = 1;
- res = INSQTI(msg, &gvp->nc_forw0);
+ INSQTI(msg, &gvp->nc_forw0);
WAITREG(NI_PCR, PCR_OWN);
NI_WREG(NI_PCR, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);
Home |
Main Index |
Thread Index |
Old Index