[coreboot-gerrit] New patch to review for coreboot: e4b7be7 cbfstool: Fix shadowed global index
Kyösti Mälkki (kyosti.malkki@gmail.com)
gerrit at coreboot.org
Fri May 15 08:22:58 CEST 2015
Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10210
-gerrit
commit e4b7be72925c4d4836d90e950f95c28c844087b8
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date: Fri May 15 09:14:09 2015 +0300
cbfstool: Fix shadowed global index
Change-Id: Ic8bccea1f2ddef874d8e440fa4fa05de1d4f9550
Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
util/cbfstool/partitioned_file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/cbfstool/partitioned_file.c b/util/cbfstool/partitioned_file.c
index 3f47a26..4e1a8b5 100644
--- a/util/cbfstool/partitioned_file.c
+++ b/util/cbfstool/partitioned_file.c
@@ -46,8 +46,8 @@ static unsigned count_selected_fmap_entries(const struct fmap *fmap,
assert(callback);
unsigned count = 0;
- for (unsigned index = 0; index < fmap->nareas; ++index) {
- if (callback(fmap->areas + index, arg))
+ for (unsigned i = 0; i < fmap->nareas; ++i) {
+ if (callback(fmap->areas + i, arg))
++count;
}
return count;
More information about the coreboot-gerrit
mailing list