Skip to content

Commit 5792a42

Browse files
aviscontidanieldegrasse
authored andcommitted
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 <[email protected]>
1 parent efdd2a8 commit 5792a42

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_decoder.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,6 @@ static int lsm6dsv16x_decoder_decode(const uint8_t *buffer, struct sensor_chan_s
660660

661661
if (header->is_fifo) {
662662
return lsm6dsv16x_decode_fifo(buffer, chan_spec, fit, max_count, data_out);
663-
} else {
664-
return lsm6dsv16x_decode_sample(buffer, chan_spec, fit, max_count, data_out);
665663
}
666664
#endif
667665

0 commit comments

Comments
 (0)