drivers/intel/fsp1_1/logo.c: Correct check for logo_size
The check to validate if the logo file was loaded correctly was incorrect. Now check the actual logo size. BUG=N/A TEST=build Change-Id: I4df2076b2f0cc371848a912c622268dfec24e2ef Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38123 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
e6ac20b9d0
commit
90a9db537b
|
@ -26,7 +26,7 @@ const struct cbmem_entry *fsp_load_logo(UINT32 *logo_ptr, UINT32 *logo_size)
|
|||
if (logo_buffer) {
|
||||
*logo_size = cbfs_boot_load_file("logo.bmp", (void *)logo_buffer,
|
||||
1 * MiB, CBFS_TYPE_RAW);
|
||||
if (logo_size)
|
||||
if (*logo_size)
|
||||
*logo_ptr = (UINT32)logo_buffer;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue