summaryrefslogtreecommitdiffstats
path: root/cli_classic.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-05-07 19:19:36 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-05-07 19:19:36 +0000
commit064bbc9f37bfcda7e9647e1d895d51747fcc19c9 (patch)
treeb79b459262f18354c0c602b107917e614b4a201c /cli_classic.c
parentdec9cec86e919d2b8a524c1bc6d82bf13b865eb6 (diff)
downloadast2050-flashrom-064bbc9f37bfcda7e9647e1d895d51747fcc19c9.zip
ast2050-flashrom-064bbc9f37bfcda7e9647e1d895d51747fcc19c9.tar.gz
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>
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli_classic.c b/cli_classic.c
index 160ea88..d1b4686 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -368,6 +368,7 @@ int cli_classic(int argc, char *argv[])
if (startchip == -1)
break;
chipcount++;
+ startchip++;
}
if (chipcount > 1) {
OpenPOWER on IntegriCloud