diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-12-17 15:31:12 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2023-01-11 12:29:38 +0000 |
commit | 4ae3ac3062230f3c7f3f16a5cdd4682b98bd7d2f (patch) | |
tree | cb1f232d9b63f40d55e688fe5b098909946bb79e /layout.c | |
parent | 9a152b8191c5bd3b0a88b29c6b267030da77b770 (diff) | |
download | flashrom-4ae3ac3062230f3c7f3f16a5cdd4682b98bd7d2f.tar.gz flashrom-4ae3ac3062230f3c7f3f16a5cdd4682b98bd7d2f.tar.bz2 flashrom-4ae3ac3062230f3c7f3f16a5cdd4682b98bd7d2f.zip |
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>
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |