Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Nuke a redundant check that raidPtr->valid...



details:   https://anonhg.NetBSD.org/src/rev/dfc4857bcf7d
branches:  trunk
changeset: 534026:dfc4857bcf7d
user:      oster <oster%NetBSD.org@localhost>
date:      Sat Jul 13 19:35:34 2002 +0000

description:
Nuke a redundant check that raidPtr->valid is true.

diffstat:

 sys/dev/raidframe/rf_driver.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 750a632c07e5 -r dfc4857bcf7d sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c     Sat Jul 13 17:47:44 2002 +0000
+++ b/sys/dev/raidframe/rf_driver.c     Sat Jul 13 19:35:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_driver.c,v 1.46 2002/01/07 01:58:03 oster Exp $     */
+/*     $NetBSD: rf_driver.c,v 1.47 2002/07/13 19:35:34 oster Exp $     */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -73,7 +73,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.46 2002/01/07 01:58:03 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.47 2002/07/13 19:35:34 oster Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -658,12 +658,6 @@
 
        raidAddress += rf_raidSectorOffset;
 
-       if (!raidPtr->valid) {
-               RF_ERRORMSG("RAIDframe driver not successfully configured.  Rejecting access.\n");
-               IO_BUF_ERR(bp, EINVAL);
-               return (EINVAL);
-       }
-
        if (rf_accessDebug) {
 
                printf("logBytes is: %d %d %d\n", raidPtr->raidid,



Home | Main Index | Thread Index | Old Index