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 <ryan.erickson@lairdconnect.com>
This commit is contained in:
Ryan Erickson 2024-02-05 21:57:32 -06:00 committed by Henrik Brix Andersen
parent df87e78dab
commit 34ec42b8f3

View file

@ -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);
}