summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-26 12:26:29 +0200
committerMartin Roth <martinroth@google.com>2019-07-02 16:15:14 +0000
commit4d4a13f7970c299bed278f2f098211cefaf17684 (patch)
treef2b5c614be340798ce31fcd7ce23b8530fea7002 /src
parent63f98f23045e072b0d07ecdd4cd50d01ad844df7 (diff)
downloadcoreboot-4d4a13f7970c299bed278f2f098211cefaf17684.tar.xz
drivers/pc80/rtc/mc146818rtc_boot: Use size_t for length
Change-Id: I877e19c014759e33b9cc48ff9ee27e898737aece Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33805 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/pc80/rtc/mc146818rtc_boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/pc80/rtc/mc146818rtc_boot.c b/src/drivers/pc80/rtc/mc146818rtc_boot.c
index 26bcac5acf..0ac06b3152 100644
--- a/src/drivers/pc80/rtc/mc146818rtc_boot.c
+++ b/src/drivers/pc80/rtc/mc146818rtc_boot.c
@@ -67,7 +67,7 @@ void sanitize_cmos(void)
CBFS_COMPONENT_CMOS_DEFAULT, &length);
#endif
if (cmos_default) {
- int i;
+ size_t i;
cmos_disable_rtc();
for (i = 14; i < MIN(128, length); i++)
cmos_write_inner(cmos_default[i], i);