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:
parent
2cc9221c09
commit
599d41d806
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user