Remove a pointless way to test a return value
(cherry picked from commit 692813d03e
)
This commit is contained in:
parent
f67de332a1
commit
fa9aef8eb6
@ -493,8 +493,6 @@ int web_server_init()
|
|||||||
|
|
||||||
void web_server_destroy(void)
|
void web_server_destroy(void)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (bWebServerState == WEB_SERVER_ENABLED) {
|
if (bWebServerState == WEB_SERVER_ENABLED) {
|
||||||
membuffer_destroy(&gDocumentRootDir);
|
membuffer_destroy(&gDocumentRootDir);
|
||||||
alias_release(&gAliasDoc);
|
alias_release(&gAliasDoc);
|
||||||
@ -503,8 +501,7 @@ void web_server_destroy(void)
|
|||||||
memset(&gAliasDoc, 0, sizeof(struct xml_alias_t));
|
memset(&gAliasDoc, 0, sizeof(struct xml_alias_t));
|
||||||
ithread_mutex_unlock(&gWebMutex);
|
ithread_mutex_unlock(&gWebMutex);
|
||||||
|
|
||||||
ret = ithread_mutex_destroy(&gWebMutex);
|
ithread_mutex_destroy(&gWebMutex);
|
||||||
assert(ret == 0);
|
|
||||||
bWebServerState = WEB_SERVER_DISABLED;
|
bWebServerState = WEB_SERVER_DISABLED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user