Module Name: src Committed By: joerg Date: Thu Jan 7 21:57:00 UTC 2016
Modified Files: src/sys/dev/raidframe: rf_dagutils.c Log Message: Don't use for (...); by using an explicit continue as body. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/dev/raidframe/rf_dagutils.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/raidframe/rf_dagutils.c diff -u src/sys/dev/raidframe/rf_dagutils.c:1.53 src/sys/dev/raidframe/rf_dagutils.c:1.54 --- src/sys/dev/raidframe/rf_dagutils.c:1.53 Wed May 11 18:13:12 2011 +++ src/sys/dev/raidframe/rf_dagutils.c Thu Jan 7 21:57:00 2016 @@ -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 @@ rf_compute_workload_shift(RF_Raid_t *rai 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);