mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
drivers/sensors/sgp30: Fix redundant parameter check
Fix redundant conditions.
This commit is contained in:
committed by
Petro Karashchenko
parent
3787a362bf
commit
9cd53d714e
@@ -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". */
|
/* Input is absolute humidity in unit "mg/m^3". */
|
||||||
|
|
||||||
if (arg < 0 || arg >= 256000)
|
if (arg >= 256000)
|
||||||
{
|
{
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user