mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
layout: Rename find_romentry() -> romentry_exists()
The functions purpose is to test for existence not to actually return the entry, therefore rename accordingly. Change-Id: Ibf14357c00717d1a7b6bc9c83e797fac125559c4 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/70893 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
9a152b8191
commit
4ae3ac3062
4
layout.c
4
layout.c
@ -209,7 +209,7 @@ static int include_region(struct flashrom_layout *const l, const char *name,
|
||||
}
|
||||
|
||||
/* returns -1 if an entry is not found, 0 if found. */
|
||||
static int find_romentry(struct flashrom_layout *const l, char *name, char *file)
|
||||
static int romentry_exists(struct flashrom_layout *const l, char *name, char *file)
|
||||
{
|
||||
if (!l->head)
|
||||
return -1;
|
||||
@ -244,7 +244,7 @@ int process_include_args(struct flashrom_layout *l, const struct layout_include_
|
||||
|
||||
tmp = args;
|
||||
while (tmp) {
|
||||
if (find_romentry(l, tmp->name, tmp->file) < 0) {
|
||||
if (romentry_exists(l, tmp->name, tmp->file) < 0) {
|
||||
msg_gerr("Invalid region specified: \"%s\".\n",
|
||||
tmp->name);
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user