Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/9f5f86a52fe5
branches: trunk
changeset: 790053:9f5f86a52fe5
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 15:00:57 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/pci/twe.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r edad686c6bfd -r 9f5f86a52fe5 sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Sun Sep 15 14:58:32 2013 +0000
+++ b/sys/dev/pci/twe.c Sun Sep 15 15:00:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twe.c,v 1.98 2012/12/02 15:34:36 chs Exp $ */
+/* $NetBSD: twe.c,v 1.99 2013/09/15 15:00:57 martin Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.98 2012/12/02 15:34:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.99 2013/09/15 15:00:57 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -663,7 +663,6 @@
{
uint16_t aen;
u_int status;
- volatile u_int32_t junk;
int got, rv;
/* Issue a soft reset. */
@@ -731,7 +730,7 @@
}
if ((status & TWE_STS_RESP_QUEUE_EMPTY) != 0)
break;
- junk = twe_inl(sc, TWE_REG_RESP_QUEUE);
+ (void)twe_inl(sc, TWE_REG_RESP_QUEUE);
}
return (0);
@@ -1476,7 +1475,7 @@
twe_ccb_map(struct twe_softc *sc, struct twe_ccb *ccb)
{
struct twe_cmd *tc;
- int flags, nsegs, i, s, rv, rc;
+ int flags, nsegs, i, s, rv;
void *data;
/*
@@ -1485,7 +1484,7 @@
if (((u_long)ccb->ccb_data & (TWE_ALIGNMENT - 1)) != 0) {
s = splvm();
/* XXX */
- rc = uvm_km_kmem_alloc(kmem_va_arena,
+ rv = uvm_km_kmem_alloc(kmem_va_arena,
ccb->ccb_datasize, (VM_NOSLEEP | VM_INSTANTFIT),
(vmem_addr_t *)&ccb->ccb_abuf);
splx(s);
Home |
Main Index |
Thread Index |
Old Index