From e589a63a11722a9fbb29de0622005ebfd6d0c4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Thu, 11 Mar 2021 00:00:25 +0000 Subject: [PATCH] drivers: modem: fix coverity issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added (void) cast to supress coverity report. The usage of K_FOREVER tells me we're not interested in the returned value. Coverity-CID: 219653 Fixes #33034 Signed-off-by: Guðni Már Gilbert --- drivers/modem/hl7800.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/modem/hl7800.c b/drivers/modem/hl7800.c index b7527ff2abbe64..0b1e4189316017 100644 --- a/drivers/modem/hl7800.c +++ b/drivers/modem/hl7800.c @@ -3347,7 +3347,7 @@ static void hl7800_rx(void) while (true) { /* wait for incoming data */ - k_sem_take(&ictx.mdm_ctx.rx_sem, K_FOREVER); + (void) k_sem_take(&ictx.mdm_ctx.rx_sem, K_FOREVER); hl7800_read_rx(&rx_buf); /* If an external module hasn't locked the command processor,