From cc1d545619dccf7f42dee95805041a6f5d7cc7e3 Mon Sep 17 00:00:00 2001 From: Ryan Erickson Date: Mon, 12 Feb 2024 13:56:43 -0600 Subject: [PATCH] modem: bg9x: ignore sem return value The semaphore waits forever, ignore the return value. Signed-off-by: Ryan Erickson --- drivers/modem/quectel-bg9x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/modem/quectel-bg9x.c b/drivers/modem/quectel-bg9x.c index 714a7606ab..a89257275f 100644 --- a/drivers/modem/quectel-bg9x.c +++ b/drivers/modem/quectel-bg9x.c @@ -457,7 +457,7 @@ static ssize_t send_socket_data(struct modem_socket *sock, snprintk(send_buf, sizeof(send_buf), "AT+QISEND=%d,%ld", sock->id, (long) buf_len); /* Setup the locks correctly. */ - k_sem_take(&mdata.cmd_handler_data.sem_tx_lock, K_FOREVER); + (void)k_sem_take(&mdata.cmd_handler_data.sem_tx_lock, K_FOREVER); k_sem_reset(&mdata.sem_tx_ready); /* Send the Modem command. */