drivers/mrc_cache: Avoid `sizeof` on struct type
commit808692b4f41cd1867d55663e66ff21ccdf223b7d
authorAngel Pons <th3fanbus@gmail.com>
Mon, 28 Jun 2021 13:12:40 +0000 (28 15:12 +0200)
committerWerner Zeh <werner.zeh@siemens.com>
Thu, 1 Jul 2021 07:26:33 +0000 (1 07:26 +0000)
treee3cb4a26b8ca0c7ffad928385e5a27185e425834
parenta8dac049b1cce95635c4e8c786af861f24eb2fb5
drivers/mrc_cache: Avoid `sizeof` on struct type

Where applicable, use the size of the associated variable.

Change-Id: Icf4f1c8fe9f54c44b041a65eb46d6ec9f9fd6367
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55902
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
src/drivers/mrc_cache/mrc_cache.c