summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>1999-12-03 03:18:45 +0000
committeroster <oster@NetBSD.org>1999-12-03 03:18:45 +0000
commit128e2e90c5d9775fa1c0ceb75bcc181401490cf5 (patch)
tree0b4218bd643edd64beed833420d4ddaf2f4255a8 /sys/dev/raidframe
parenta038f90588957b93b6175c52dc78a77acefa27c1 (diff)
Nuke some duplicate code.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_driver.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/raidframe/rf_driver.c b/sys/dev/raidframe/rf_driver.c
index 4c1e55d52df..8e925c730e1 100644
--- a/sys/dev/raidframe/rf_driver.c
+++ b/sys/dev/raidframe/rf_driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.c,v 1.15 1999/08/14 03:10:03 oster Exp $ */
+/* $NetBSD: rf_driver.c,v 1.16 1999/12/03 03:18:45 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -768,13 +768,8 @@ bp_in is a buf pointer. void * to facilitate ignoring it outside the kernel
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);
- if (type == RF_IO_TYPE_READ) {
- IO_BUF_ERR(bp, ENOSPC, raidPtr->raidid);
- return (ENOSPC);
- } else {
- IO_BUF_ERR(bp, ENOSPC, raidPtr->raidid);
- return (ENOSPC);
- }
+ IO_BUF_ERR(bp, ENOSPC, raidPtr->raidid);
+ return (ENOSPC);
}
desc = rf_AllocRaidAccDesc(raidPtr, type, raidAddress,
numBlocks, lbufPtr, bp, paramDAG, paramASM,