mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 06:53:18 +02:00
flashrom.c: flatten out write_buf_to_include_args()
write_buf_to_include_args() does not need the whole flashctx, rather it works with a fix layout and buffer. Just pass what state is actually required. BUG=b:242246291 TEST=builds Change-Id: I885c4395356eef27746c66300233f07f4718ccdf Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66644 Reviewed-by: Evan Benn <evanbenn@google.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-by: Sam McNally <sammc@google.com> Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:

committed by
Edward O'Callaghan

parent
ac7f0c20b8
commit
eb1b1f6f7d
@ -373,7 +373,7 @@ static int do_read(struct flashctx *const flash, const char *const filename)
|
||||
if (ret > 0)
|
||||
goto free_out;
|
||||
|
||||
if (write_buf_to_include_args(flash, buf)) {
|
||||
if (write_buf_to_include_args(get_layout(flash), buf)) {
|
||||
ret = 1;
|
||||
goto free_out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user