Skip to content

Commit

Permalink
shell: backends: shell_websocket remove deadcode
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jilaypandya authored and kartben committed Jan 16, 2025
1 parent 5af7bf8 commit f5a126e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions subsys/shell/backends/shell_websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5a126e

Please sign in to comment.