mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 16:03:47 +02:00
programmer_table: remove null termination
The {0} object at the end of programmer_table which corresponds to PROGRAMMER_INVALID has no use in current code. Change-Id: Ib63c2d2941f23a0788e26e5a5feb25d8669acb42 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/55115 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
4332e7c04e
commit
9cf3f8925b
@ -532,8 +532,6 @@ const struct programmer_entry programmer_table[] = {
|
|||||||
.delay = internal_delay,
|
.delay = internal_delay,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{0}, /* This entry corresponds to PROGRAMMER_INVALID. */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SHUTDOWN_MAXFN 32
|
#define SHUTDOWN_MAXFN 32
|
||||||
@ -2191,7 +2189,7 @@ int selfcheck(void)
|
|||||||
/* Safety check. Instead of aborting after the first error, check
|
/* Safety check. Instead of aborting after the first error, check
|
||||||
* if more errors exist.
|
* if more errors exist.
|
||||||
*/
|
*/
|
||||||
if (ARRAY_SIZE(programmer_table) - 1 != PROGRAMMER_INVALID) {
|
if (ARRAY_SIZE(programmer_table) != PROGRAMMER_INVALID) {
|
||||||
msg_gerr("Programmer table miscompilation!\n");
|
msg_gerr("Programmer table miscompilation!\n");
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user