summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.de>2021-05-19 14:12:18 +0200
committerNico Huber <nico.h@gmx.de>2021-06-10 12:49:28 +0000
commite14b2ec65ca6f79e02da8e1cedff5441423e9b6c (patch)
tree93277a930c180517bf766a5383cb4e33c9e7b1e0 /print.c
parent4f5169df5ff2b63a40d654ab133b8a3108b6a599 (diff)
downloadflashrom-e14b2ec65ca6f79e02da8e1cedff5441423e9b6c.tar.gz
flashrom-e14b2ec65ca6f79e02da8e1cedff5441423e9b6c.tar.bz2
flashrom-e14b2ec65ca6f79e02da8e1cedff5441423e9b6c.zip
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>
Diffstat (limited to 'print.c')
-rw-r--r--print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.c b/print.c
index 77cf3d5e0..fd561287d 100644
--- a/print.c
+++ b/print.c
@@ -482,7 +482,7 @@ int print_supported(void)
msg_ginfo("\n");
print_supported_boards_helper(laptops_known, "mobile devices");
#endif
- for (i = 0; i < PROGRAMMER_INVALID; i++) {
+ for (i = 0; i < programmer_table_size; i++) {
const struct programmer_entry *const prog = programmer_table[i];
switch (prog->type) {
case USB: