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 <felix-coreboot@felixheld.de>
Change-Id: If82a948bf71079d456616f4438f4b754e0d7262d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56702
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2021-07-30 03:09:25 +02:00
parent 6c0ff7a7f1
commit 75196bf6bb
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
static int get_gpio_gevent(gpio_t gpio, const struct soc_amd_event *table, static int get_gpio_gevent(gpio_t gpio, const struct soc_amd_event *table,
size_t items) size_t items)
{ {
int i; size_t i;
for (i = 0; i < items; i++) { for (i = 0; i < items; i++) {
if ((table + i)->gpio == gpio) if ((table + i)->gpio == gpio)