mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue