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:
Wim Vervoorn 2020-01-02 11:51:48 +01:00 committed by Nico Huber
parent e6ac20b9d0
commit 90a9db537b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}