1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

Fix multiple detection of the same chip

r1293 introduced a bug which caused probing to loop at the first found
chip.

Corresponding to flashrom svn r1296.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
Carl-Daniel Hailfinger 2011-05-07 19:19:36 +00:00
parent dec9cec86e
commit 064bbc9f37

View File

@ -368,6 +368,7 @@ int cli_classic(int argc, char *argv[])
if (startchip == -1) if (startchip == -1)
break; break;
chipcount++; chipcount++;
startchip++;
} }
if (chipcount > 1) { if (chipcount > 1) {