Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Don't use for (...); by using an explicit ...



details:   https://anonhg.NetBSD.org/src/rev/019173f092d1
branches:  trunk
changeset: 342764:019173f092d1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jan 07 21:57:00 2016 +0000

description:
Don't use for (...); by using an explicit continue as body.

diffstat:

 sys/dev/raidframe/rf_dagutils.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r aad126caade3 -r 019173f092d1 sys/dev/raidframe/rf_dagutils.c
--- a/sys/dev/raidframe/rf_dagutils.c   Thu Jan 07 21:11:54 2016 +0000
+++ b/sys/dev/raidframe/rf_dagutils.c   Thu Jan 07 21:57:00 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_dagutils.c,v 1.53 2011/05/11 18:13:12 mrg Exp $     */
+/*     $NetBSD: rf_dagutils.c,v 1.54 2016/01/07 21:57:00 joerg Exp $   */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.53 2011/05/11 18:13:12 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.54 2016/01/07 21:57:00 joerg Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -1258,7 +1258,8 @@
        d = pda->col;
 
        /* assign column of dead disk to f */
-       for (f = 0; ((!RF_DEAD_DISK(raidPtr->Disks[f].status)) && (f < n)); f++);
+       for (f = 0; ((!RF_DEAD_DISK(raidPtr->Disks[f].status)) && (f < n)); f++)
+               continue;
 
        RF_ASSERT(f < n);
        RF_ASSERT(f != d);



Home | Main Index | Thread Index | Old Index