cbfstool: Fix shadowed global index
Change-Id: Ic8bccea1f2ddef874d8e440fa4fa05de1d4f9550 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/10210 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Marc Jones <marc.jones@se-eng.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user