summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-05-07 19:19:36 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-05-07 19:19:36 +0000
commit5192dab016025cf72fefab1f9b5d2a76dc6cf835 (patch)
treeb79b459262f18354c0c602b107917e614b4a201c /cli_classic.c
parent6eb4abb279ae6a67ee0ce5ec57fe5f8479ee128f (diff)
downloadflashrom-5192dab016025cf72fefab1f9b5d2a76dc6cf835.tar.gz
Fix multiple detection of the same chip.
r1293 introduced a bug which caused probing to loop at the first found chip. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1296 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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) {