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

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit eefc49581d60ad1997ef9a745df593e6732947ca
Author: Magdalena Kasenberg <magdalena.kasenb...@codecoup.pl>
AuthorDate: Thu Feb 25 16:14:09 2021 +0100

    sensors/icp101xx: Fix identical code for different branches
    
    Remove needless conditional statement.
    Coverity issue 204199.
---
 hw/drivers/sensors/icp101xx/src/icp101xx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/drivers/sensors/icp101xx/src/icp101xx.c 
b/hw/drivers/sensors/icp101xx/src/icp101xx.c
index 93b99a5..1949489 100644
--- a/hw/drivers/sensors/icp101xx/src/icp101xx.c
+++ b/hw/drivers/sensors/icp101xx/src/icp101xx.c
@@ -498,9 +498,7 @@ read_raw_data(struct icp101xx *icp101xx, struct 
icp101xx_cfg *cfg, int32_t *raw_
 
     /* Restart next measurement */
     rc = send_measurement_command(icp101xx, cfg);
-    if (rc) {
-        goto err;
-    }
+
 err:
     return rc;
 }

Reply via email to