mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity 188324: dead code when no extensions
This commit is contained in:
parent
f63f4e56aa
commit
0e8b3fed12
1 changed files with 2 additions and 9 deletions
|
@ -387,7 +387,7 @@ __lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, const char *
|
|||
struct lws *wsi1, *wsi2;
|
||||
struct lws_context *context;
|
||||
struct lws_tokens eff_buf;
|
||||
int n, m, ret;
|
||||
int n, m;
|
||||
|
||||
lwsl_info("%s: %p: caller: %s\n", __func__, wsi, caller);
|
||||
|
||||
|
@ -530,7 +530,6 @@ __lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, const char *
|
|||
* if there are problems with send, just nuke the connection
|
||||
*/
|
||||
do {
|
||||
ret = 0;
|
||||
eff_buf.token = NULL;
|
||||
eff_buf.token_len = 0;
|
||||
|
||||
|
@ -542,12 +541,6 @@ __lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, const char *
|
|||
lwsl_ext("Extension reports fatal error\n");
|
||||
goto just_kill_connection;
|
||||
}
|
||||
if (m)
|
||||
/*
|
||||
* at least one extension told us he has more
|
||||
* to spill, so we will go around again after
|
||||
*/
|
||||
ret = 1;
|
||||
|
||||
/* assuming they left us something to send, send it */
|
||||
|
||||
|
@ -558,7 +551,7 @@ __lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, const char *
|
|||
lwsl_debug("close: ext spill failed\n");
|
||||
goto just_kill_connection;
|
||||
}
|
||||
} while (ret);
|
||||
} while (m);
|
||||
|
||||
/*
|
||||
* signal we are closing, lws_write will
|
||||
|
|
Loading…
Add table
Reference in a new issue