Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/77154?usp=email )
Change subject: ec/lenovo/h8/h8.c: Use sizeof() ......................................................................
ec/lenovo/h8/h8.c: Use sizeof()
Use 'sizeof(ecfw)' instead of 'sizeof ecfw'.
Change-Id: Ifae1680917bb0ce610e6ba753741aae233a71103 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/ec/lenovo/h8/h8.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/77154/1
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 3df20c1..f41691f 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -86,7 +86,7 @@ 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);