drivers/sensors/sgp30: Fix redundant parameter check

Fix redundant conditions.
This commit is contained in:
SPRESENSE 2022-04-11 16:36:18 +09:00 committed by Petro Karashchenko
parent 3787a362bf
commit 9cd53d714e

View File

@ -897,7 +897,7 @@ static int sgp30_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
/* Input is absolute humidity in unit "mg/m^3". */
if (arg < 0 || arg >= 256000)
if (arg >= 256000)
{
ret = -EINVAL;
break;