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 <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2024-07-24 11:02:17 +08:00 committed by Petro Karashchenko
parent 2cc9221c09
commit 599d41d806

View File

@ -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;