From fa9aef8eb662ce74fc340073b498d1657646327a Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Wed, 20 Jun 2012 21:15:01 -0300 Subject: [PATCH] Remove a pointless way to test a return value (cherry picked from commit 692813d03e0d89b239639499c5b700ddf6d9458d) --- upnp/src/genlib/net/http/webserver.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/upnp/src/genlib/net/http/webserver.c b/upnp/src/genlib/net/http/webserver.c index eb2294e..99e9cfb 100644 --- a/upnp/src/genlib/net/http/webserver.c +++ b/upnp/src/genlib/net/http/webserver.c @@ -493,8 +493,6 @@ int web_server_init() void web_server_destroy(void) { - int ret; - if (bWebServerState == WEB_SERVER_ENABLED) { membuffer_destroy(&gDocumentRootDir); alias_release(&gAliasDoc); @@ -503,8 +501,7 @@ void web_server_destroy(void) memset(&gAliasDoc, 0, sizeof(struct xml_alias_t)); ithread_mutex_unlock(&gWebMutex); - ret = ithread_mutex_destroy(&gWebMutex); - assert(ret == 0); + ithread_mutex_destroy(&gWebMutex); bWebServerState = WEB_SERVER_DISABLED; } }