1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-06-30 21:52:36 +02:00

programmer_table: replace PROGRAMMER_INVALID with programmer_table_size

Change-Id: Icaaeefe001de604df9d7fdd06f05a5ed39fdbd84
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/55117
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Thomas Heijligen
2021-05-19 14:12:18 +02:00
committed by Nico Huber
parent 4f5169df5f
commit e14b2ec65c
5 changed files with 14 additions and 14 deletions

View File

@ -406,7 +406,7 @@ int main(int argc, char *argv[])
"with \",\". Please see the man page "
"for details.\n");
}
for (prog = 0; prog < PROGRAMMER_INVALID; prog++) {
for (prog = 0; prog < programmer_table_size; prog++) {
name = programmer_table[prog]->name;
namelen = strlen(name);
if (strncmp(optarg, name, namelen) == 0) {