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 <jilay.pandya@outlook.com>
This commit is contained in:
Jilay Pandya 2024-12-03 20:15:16 +01:00 committed by Benjamin Cabé
parent 5af7bf8ff0
commit f5a126e7ac

View file

@ -140,12 +140,6 @@ static void ws_recv(struct shell_websocket *ws, struct zsock_pollfd *pollfd)
} }
len = ret; len = ret;
if (len == 0) {
k_mutex_unlock(&ws->rx_lock);
return;
}
ws->rx_len += len; ws->rx_len += len;
k_mutex_unlock(&ws->rx_lock); k_mutex_unlock(&ws->rx_lock);