From 75196bf6bba65c10fb37e528046d693d605f2fe9 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 30 Jul 2021 03:09:25 +0200 Subject: soc/amd/common/block/gpio_banks/gpio: use size_t where needed Since the parameter the variable gets compared with is size_t type, use size_t as type for that variable too. Signed-off-by: Felix Held Change-Id: If82a948bf71079d456616f4438f4b754e0d7262d Reviewed-on: https://review.coreboot.org/c/coreboot/+/56702 Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/gpio_banks/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/gpio_banks/gpio.c b/src/soc/amd/common/block/gpio_banks/gpio.c index 108635a340..7564aa2159 100644 --- a/src/soc/amd/common/block/gpio_banks/gpio.c +++ b/src/soc/amd/common/block/gpio_banks/gpio.c @@ -18,7 +18,7 @@ static int get_gpio_gevent(gpio_t gpio, const struct soc_amd_event *table, size_t items) { - int i; + size_t i; for (i = 0; i < items; i++) { if ((table + i)->gpio == gpio) -- cgit v1.2.3