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:
parent
5af7bf8ff0
commit
f5a126e7ac
1 changed files with 0 additions and 6 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue