Remove some minor stuff that wasn't right, and wasn't even really used.

This commit is contained in:
oster 1999-11-17 01:16:37 +00:00
parent e345f0f17c
commit e589155692
1 changed files with 7 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_netbsdkintf.c,v 1.29 1999/08/14 23:34:18 oster Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.30 1999/11/17 01:16:37 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@ -153,11 +153,6 @@
int rf_kdebug_level = 0;
#define RFK_BOOT_NONE 0
#define RFK_BOOT_GOOD 1
#define RFK_BOOT_BAD 2
static int rf_kbooted = RFK_BOOT_NONE;
#ifdef DEBUG
#define db0_printf(a) printf a
#define db_printf(a) if (rf_kdebug_level > 0) printf a
@ -348,8 +343,6 @@ raidattach(num)
else
panic("Serious error booting RAID!!\n");
rf_kbooted = RFK_BOOT_GOOD;
/* put together some datastructures like the CCD device does.. This
* lets us lock the device and what-not when it gets opened. */
@ -570,8 +563,13 @@ raidstrategy(bp)
else
db1_printf(("WRITE\n"));
#endif
if (rf_kbooted != RFK_BOOT_GOOD)
if ((rs->sc_flags & RAIDF_INITED) ==0) {
bp->b_error = ENXIO;
bp->b_flags = B_ERROR;
bp->b_resid = bp->b_bcount;
biodone(bp);
return;
}
if (raidID >= numraid || !raidPtrs[raidID]) {
bp->b_error = ENODEV;
bp->b_flags |= B_ERROR;