Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Move two RF_ASSERT()s into the protection ...
details: https://anonhg.NetBSD.org/src/rev/72eaf0096bbd
branches: trunk
changeset: 791539:72eaf0096bbd
user: riz <riz%NetBSD.org@localhost>
date: Fri Nov 22 18:55:42 2013 +0000
description:
Move two RF_ASSERT()s into the protection of RAID_DIAGNOSTIC to
avoid a case where we get undeclared variables.
diffstat:
sys/dev/raidframe/rf_evenodd_dagfuncs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a84df440a0a6 -r 72eaf0096bbd sys/dev/raidframe/rf_evenodd_dagfuncs.c
--- a/sys/dev/raidframe/rf_evenodd_dagfuncs.c Fri Nov 22 18:42:02 2013 +0000
+++ b/sys/dev/raidframe/rf_evenodd_dagfuncs.c Fri Nov 22 18:55:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_evenodd_dagfuncs.c,v 1.20 2009/03/14 15:36:20 dsl Exp $ */
+/* $NetBSD: rf_evenodd_dagfuncs.c,v 1.21 2013/11/22 18:55:42 riz Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_evenodd_dagfuncs.c,v 1.20 2009/03/14 15:36:20 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_evenodd_dagfuncs.c,v 1.21 2013/11/22 18:55:42 riz Exp $");
#include "rf_archs.h"
@@ -114,10 +114,10 @@
RF_PhysDiskAddr_t *EPDA =
(RF_PhysDiskAddr_t *) node->params[EpdaIndex].p;
int ESUOffset = rf_StripeUnitOffset(layoutPtr, EPDA->startSector);
-#endif /* RAID_DIAGNOSTIC */
RF_ASSERT(EPDA->type == RF_PDA_TYPE_Q);
RF_ASSERT(ESUOffset == 0);
+#endif /* RAID_DIAGNOSTIC */
RF_ETIMER_START(timer);
Home |
Main Index |
Thread Index |
Old Index