From 599d41d80673ccda25c1a946bb5e436db509b18a Mon Sep 17 00:00:00 2001 From: guoshichao Date: Wed, 24 Jul 2024 11:02:17 +0800 Subject: [PATCH] greenhills: fix the pointless comparison build warning "ioexpander/gpio.c", line 529: warning #186-D: pointless comparison of unsigned integer with zero if (pintype < GPIO_INPUT_PIN || pintype >= GPIO_NPINTYPES) ^ Signed-off-by: guoshichao --- drivers/ioexpander/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ioexpander/gpio.c b/drivers/ioexpander/gpio.c index c653ccbf4d..5c5fbc767b 100644 --- a/drivers/ioexpander/gpio.c +++ b/drivers/ioexpander/gpio.c @@ -464,7 +464,7 @@ static int gpio_ioctl(FAR struct file *filep, int cmd, unsigned long arg) /* Check if the argument is a valid pintype */ - if (pintype < GPIO_INPUT_PIN || pintype >= GPIO_NPINTYPES) + if (pintype >= GPIO_NPINTYPES) { ret = -EINVAL; break;