coverity-181580: supposedly dead code
authorAndy Green <andy@warmcat.com>
Wed, 19 Jul 2017 06:47:30 +0000 (14:47 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 19 Jul 2017 06:47:30 +0000 (14:47 +0800)
lib/server.c

index 042034c..108321d 100644 (file)
@@ -913,10 +913,7 @@ lws_http_action(struct lws *wsi)
                        if (!pa)
                                pa = "(unknown)";
 
-                       if (meth >= 0)
-                               me = method_names[meth];
-                       else
-                               me = "unknown";
+                       me = method_names[meth];
 
                        lws_snprintf(wsi->access_log.header_log, l,
                                 "%s - - [%s] \"%s %s %s\"",