diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2023-08-13 12:43:38 +0200 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2023-09-07 17:34:22 +0000 |
commit | ad0b3fa83dc4a02adf8bfd391f9a6dfd3c2412ad (patch) | |
tree | 8794df0cd1b6094245011bf1a451d83167c27489 /src/ec/lenovo/h8/h8.c | |
parent | 7542ab94dff18af2f06f15b860e069062de68b7c (diff) |
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>
Diffstat (limited to 'src/ec/lenovo/h8/h8.c')
-rw-r--r-- | src/ec/lenovo/h8/h8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 3df20c14f3..f41691f1fa 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -86,7 +86,7 @@ static void h8_log_ec_version(void) u8 len; 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; fwvh = ec_read(0xe9); |