Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Shorten IO_BUF_ERR macro by one (unused) arg.



details:   https://anonhg.NetBSD.org/src/rev/4fc78addefa4
branches:  trunk
changeset: 480217:4fc78addefa4
user:      oster <oster%NetBSD.org@localhost>
date:      Fri Jan 07 03:03:44 2000 +0000

description:
Shorten IO_BUF_ERR macro by one (unused) arg.

diffstat:

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

diffs (36 lines):

diff -r d84d718e3c10 -r 4fc78addefa4 sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c     Fri Jan 07 02:57:17 2000 +0000
+++ b/sys/dev/raidframe/rf_driver.c     Fri Jan 07 03:03:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_driver.c,v 1.19 1999/12/07 02:54:08 oster Exp $     */
+/*     $NetBSD: rf_driver.c,v 1.20 2000/01/07 03:03:44 oster Exp $     */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -155,7 +155,7 @@
 #define WAIT_FOR_QUIESCENCE(_raid_) \
        tsleep(&((_raid_)->accesses_suspended),PRIBIO,"raidframe quiesce", 0);
 
-#define IO_BUF_ERR(bp, err, unit) { \
+#define IO_BUF_ERR(bp, err) { \
        bp->b_flags |= B_ERROR; \
        bp->b_resid = bp->b_bcount; \
        bp->b_error = err; \
@@ -704,7 +704,7 @@
 
        if (!raidPtr->valid) {
                RF_ERRORMSG("RAIDframe driver not successfully configured.  Rejecting access.\n");
-               IO_BUF_ERR(bp, EINVAL, raidPtr->raidid);
+               IO_BUF_ERR(bp, EINVAL);
                return (EINVAL);
        }
 
@@ -727,7 +727,7 @@
                printf("DoAccess: raid addr %lu too large to access %lu sectors.  Max legal addr is %lu\n",
                    (u_long) raidAddress, (u_long) numBlocks, (u_long) raidPtr->totalSectors);
 
-               IO_BUF_ERR(bp, ENOSPC, raidPtr->raidid);
+               IO_BUF_ERR(bp, ENOSPC);
                return (ENOSPC);
        }
        desc = rf_AllocRaidAccDesc(raidPtr, type, raidAddress,



Home | Main Index | Thread Index | Old Index