drivers: modem: fix coverity issue

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 <gudni.m.g@gmail.com>
This commit is contained in:
Guðni Már Gilbert 2021-03-11 00:00:25 +00:00 committed by Anas Nashif
commit 6145ab537f

View file

@ -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,