From 487380f3c22a60e18053387fed3b1ad890774e92 Mon Sep 17 00:00:00 2001 From: Ryan Erickson Date: Mon, 5 Feb 2024 21:57:32 -0600 Subject: [PATCH] modem: hl7800: sock_read len arg is not used The static function sock_read does not need a length arg, remove it. Signed-off-by: Ryan Erickson --- drivers/modem/hl7800.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/modem/hl7800.c b/drivers/modem/hl7800.c index 9846cf86f84e..975984f839d9 100644 --- a/drivers/modem/hl7800.c +++ b/drivers/modem/hl7800.c @@ -4047,7 +4047,7 @@ static void sockreadrecv_cb_work(struct k_work *work) } } -static void sock_read(struct net_buf **buf, uint16_t len) +static void sock_read(struct net_buf **buf) { struct hl7800_socket *sock = NULL; struct net_buf *frag; @@ -4153,7 +4153,7 @@ static void sock_read(struct net_buf **buf, uint16_t len) } frag = NULL; - len = net_buf_findcrlf(*buf, &frag); + (void)net_buf_findcrlf(*buf, &frag); if (!frag) { LOG_WRN("Unable to find OK start"); goto all_rx_data; @@ -4217,7 +4217,7 @@ static bool on_cmd_connect(struct net_buf **buf, uint16_t len) if (sock->state == SOCK_RX) { remove_data_from_buffer = false; - sock_read(buf, len); + sock_read(buf); } else { k_sem_give(&sock->sock_send_sem); }