diff options
author | Nico Huber <nico.h@gmx.de> | 2019-06-16 20:17:19 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-06-26 15:57:21 +0000 |
commit | 78d9c7d02c0eb9720a40d9fe80a4843c064fd3c6 (patch) | |
tree | 89157d4614ab16ebfc934c763c21ed92d06276be /layout.c | |
parent | 953c5ad440588e4bb5325efb10fa67e43ae7b782 (diff) | |
download | flashrom-78d9c7d02c0eb9720a40d9fe80a4843c064fd3c6.tar.gz flashrom-78d9c7d02c0eb9720a40d9fe80a4843c064fd3c6.tar.bz2 flashrom-78d9c7d02c0eb9720a40d9fe80a4843c064fd3c6.zip |
layout: Drop `count` parameter of flashrom_layout_new()
Change-Id: I22c180c9971068b1ae101845ce88484c6842b852
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/33544
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -34,7 +34,7 @@ static struct flashrom_layout *global_layout; struct flashrom_layout *get_global_layout(void) { if (!global_layout) - flashrom_layout_new(&global_layout, 0); + flashrom_layout_new(&global_layout); return global_layout; } @@ -378,12 +378,11 @@ const struct romentry *layout_next( * @brief Create a new, empty layout. * * @param layout Pointer to returned layout reference. - * @param count Number of layout entries to allocate. * * @return 0 on success, * 1 if out of memory. */ -int flashrom_layout_new(struct flashrom_layout **const layout, const unsigned int count) +int flashrom_layout_new(struct flashrom_layout **const layout) { *layout = malloc(sizeof(**layout)); if (!*layout) { |