From f5a126e7aca696550cb23b2705cc04fb534fb98e Mon Sep 17 00:00:00 2001 From: Jilay Pandya Date: Tue, 3 Dec 2024 20:15:16 +0100 Subject: [PATCH] shell: backends: shell_websocket remove deadcode fix coverity issue about deadcode, there is no code path which would lead to the code that is being deleted with this commit Signed-off-by: Jilay Pandya --- subsys/shell/backends/shell_websocket.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subsys/shell/backends/shell_websocket.c b/subsys/shell/backends/shell_websocket.c index 5be9a7f32f4..92b83965318 100644 --- a/subsys/shell/backends/shell_websocket.c +++ b/subsys/shell/backends/shell_websocket.c @@ -140,12 +140,6 @@ static void ws_recv(struct shell_websocket *ws, struct zsock_pollfd *pollfd) } len = ret; - - if (len == 0) { - k_mutex_unlock(&ws->rx_lock); - return; - } - ws->rx_len += len; k_mutex_unlock(&ws->rx_lock);