This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 9cd53d714ec43f51a1158f4b2c124ec6d585ae42
Author: SPRESENSE <41312067+sprese...@users.noreply.github.com>
AuthorDate: Mon Apr 11 16:36:18 2022 +0900

    drivers/sensors/sgp30: Fix redundant parameter check
    
    Fix redundant conditions.
---
 drivers/sensors/sgp30.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sensors/sgp30.c b/drivers/sensors/sgp30.c
index 1c345a3873..ab6cf1fb82 100644
--- a/drivers/sensors/sgp30.c
+++ b/drivers/sensors/sgp30.c
@@ -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;

Reply via email to