Skip to content

Commit f5a126e

Browse files
jilaypandyakartben
authored andcommitted
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 <[email protected]>
1 parent 5af7bf8 commit f5a126e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

subsys/shell/backends/shell_websocket.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ static void ws_recv(struct shell_websocket *ws, struct zsock_pollfd *pollfd)
140140
}
141141

142142
len = ret;
143-
144-
if (len == 0) {
145-
k_mutex_unlock(&ws->rx_lock);
146-
return;
147-
}
148-
149143
ws->rx_len += len;
150144

151145
k_mutex_unlock(&ws->rx_lock);

0 commit comments

Comments
 (0)