ec/lenovo/h8/h8.c: Use sizeof()

Use 'sizeof(ecfw)' instead of 'sizeof ecfw'.
sizeof operator should only be used for types and variables require sizeof().

Change-Id: Ifae1680917bb0ce610e6ba753741aae233a71103
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77154
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
Elyes Haouas 2023-08-13 12:43:38 +02:00
parent 7542ab94df
commit ad0b3fa83d
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ static void h8_log_ec_version(void)
u8 len; u8 len;
u16 fwvh, fwvl; u16 fwvh, fwvl;
len = h8_build_id_and_function_spec_version(ecfw, sizeof ecfw - 1); len = h8_build_id_and_function_spec_version(ecfw, sizeof(ecfw) - 1);
ecfw[len] = 0; ecfw[len] = 0;
fwvh = ec_read(0xe9); fwvh = ec_read(0xe9);