Browse Source

drivers/sensor: lsm6dsv16x: fix unreachable code in decoder_decode()

Fix unreachable code in decoder_decode() as reported by Coverity scan.

Fixes: CID 529878

Signed-off-by: Armando Visconti <armando.visconti@st.com>
main
Armando Visconti 5 days ago committed by Daniel DeGrasse
parent
commit
5792a429c8
  1. 2
      drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_decoder.c

2
drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_decoder.c

@ -660,8 +660,6 @@ static int lsm6dsv16x_decoder_decode(const uint8_t *buffer, struct sensor_chan_s @@ -660,8 +660,6 @@ static int lsm6dsv16x_decoder_decode(const uint8_t *buffer, struct sensor_chan_s
if (header->is_fifo) {
return lsm6dsv16x_decode_fifo(buffer, chan_spec, fit, max_count, data_out);
} else {
return lsm6dsv16x_decode_sample(buffer, chan_spec, fit, max_count, data_out);
}
#endif

Loading…
Cancel
Save