Skip to content

Commit 16dc36b

Browse files
aviscontigalak
authored andcommitted
samples/96b_argonkey: microphone: Fix coverity bug 190958
Fix coverity CID 190958: Logically dead code (DEADCODE) (bug: #13857) Condition (ret < 0) was tested, but 'ret' variable was not assigned. Signed-off-by: Armando Visconti <[email protected]>
1 parent d3bf4b4 commit 16dc36b

File tree

1 file changed

+1
-1
lines changed
  • samples/boards/96b_argonkey/microphone/src

1 file changed

+1
-1
lines changed

samples/boards/96b_argonkey/microphone/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void main(void)
145145

146146
/* Acquire microphone audio */
147147
for (ms = 0; ms < NUM_MS; ms++) {
148-
dmic_read(mic_dev, 0, &rx_block[ms], &rx_size, 2000);
148+
ret = dmic_read(mic_dev, 0, &rx_block[ms], &rx_size, 2000);
149149
if (ret < 0) {
150150
printk("microphone audio read error\n");
151151
return;

0 commit comments

Comments
 (0)