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 483642c3d5fd4143bd08559be4595c1aadc0bec6 Author: Magdalena Kasenberg <magdalena.kasenb...@codecoup.pl> AuthorDate: Wed Feb 24 10:59:30 2021 +0100 sensors/bmp388: Fix unused value, issue 204237 Coverity issue 204237. --- hw/drivers/sensors/bmp388/src/bmp388.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/drivers/sensors/bmp388/src/bmp388.c b/hw/drivers/sensors/bmp388/src/bmp388.c index 0c48c61..df22bb7 100644 --- a/hw/drivers/sensors/bmp388/src/bmp388.c +++ b/hw/drivers/sensors/bmp388/src/bmp388.c @@ -3094,12 +3094,10 @@ bmp388_poll_read(struct sensor *sensor, sensor_type_t sensor_type, /* If the read isn't looking for pressure data, don't do anything. */ if ((!(sensor_type & SENSOR_TYPE_PRESSURE)) && (!(sensor_type & SENSOR_TYPE_TEMPERATURE))) { - rc = SYS_EINVAL; goto err; } if (cfg->read_mode.mode != BMP388_READ_M_POLL) { - rc = SYS_EINVAL; goto err; }