Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev remove unused
details: https://anonhg.NetBSD.org/src/rev/8283555dec3b
branches: trunk
changeset: 328005:8283555dec3b
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 23 03:41:10 2014 +0000
description:
remove unused
diffstat:
sys/dev/gpib/rd.c | 7 +++----
sys/dev/raidframe/rf_dagdegwr.c | 8 +++-----
2 files changed, 6 insertions(+), 9 deletions(-)
diffs (78 lines):
diff -r 4edc563c23e9 -r 8283555dec3b sys/dev/gpib/rd.c
--- a/sys/dev/gpib/rd.c Sun Mar 23 02:59:19 2014 +0000
+++ b/sys/dev/gpib/rd.c Sun Mar 23 03:41:10 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rd.c,v 1.32 2014/03/16 05:20:27 dholland Exp $ */
+/* $NetBSD: rd.c,v 1.33 2014/03/23 03:41:10 christos Exp $ */
/*-
* Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.32 2014/03/16 05:20:27 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.33 2014/03/23 03:41:10 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -697,7 +697,7 @@
rdstart(struct rd_softc *sc)
{
struct buf *bp = bufq_peek(sc->sc_tab);
- int part, slave, punit;
+ int slave, punit;
slave = sc->sc_slave;
punit = sc->sc_punit;
@@ -707,7 +707,6 @@
again:
- part = RDPART(bp->b_dev);
sc->sc_flags |= RDF_SEEK;
sc->sc_ioc.c_unit = CS80CMD_SUNIT(punit);
sc->sc_ioc.c_volume = CS80CMD_SVOL(0);
diff -r 4edc563c23e9 -r 8283555dec3b sys/dev/raidframe/rf_dagdegwr.c
--- a/sys/dev/raidframe/rf_dagdegwr.c Sun Mar 23 02:59:19 2014 +0000
+++ b/sys/dev/raidframe/rf_dagdegwr.c Sun Mar 23 03:41:10 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_dagdegwr.c,v 1.32 2013/09/15 12:20:28 martin Exp $ */
+/* $NetBSD: rf_dagdegwr.c,v 1.33 2014/03/23 03:42:39 christos Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagdegwr.c,v 1.32 2013/09/15 12:20:28 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagdegwr.c,v 1.33 2014/03/23 03:42:39 christos Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -582,7 +582,7 @@
int numDataCol = layoutPtr->numDataCol;
int state;
unsigned napdas;
- RF_SectorNum_t fone_start, fone_end, ftwo_start = 0, ftwo_end;
+ RF_SectorNum_t fone_start, ftwo_start = 0;
RF_PhysDiskAddr_t *fone = asmap->failedPDAs[0], *ftwo = asmap->failedPDAs[1];
RF_PhysDiskAddr_t *pda_p;
RF_RaidAddr_t sosAddr;
@@ -592,7 +592,6 @@
* possibly two, depending whether they overlap. */
fone_start = rf_StripeUnitOffset(layoutPtr, fone->startSector);
- fone_end = fone_start + fone->numSector;
if (asmap->numDataFailed == 1) {
PDAPerDisk = 1;
@@ -608,7 +607,6 @@
pda_p->type = RF_PDA_TYPE_Q;
} else {
ftwo_start = rf_StripeUnitOffset(layoutPtr, ftwo->startSector);
- ftwo_end = ftwo_start + ftwo->numSector;
if (fone->numSector + ftwo->numSector > secPerSU) {
PDAPerDisk = 1;
state = 2;
Home |
Main Index |
Thread Index |
Old Index