ecore_con: remove dead code.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 21 Sep 2015 10:24:41 +0000 (19:24 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 21 Sep 2015 10:26:15 +0000 (19:26 +0900)
there won't reach with !wp because if wp is null,
the iteration will jump to next iteration.

src/lib/ecore_con/dns.c

index b524427..0100550 100644 (file)
@@ -3498,9 +3498,6 @@ int dns_hosts_loadfile(struct dns_hosts *hosts, FILE *fp) {
 
                                break;
                        default:
-                               if (!wp)
-                                       break;
-
                                dns_d_anchor(ent.host, sizeof ent.host, word, wp);
 
                                if ((error = dns_hosts_insert(hosts, ent.af, &ent.addr, ent.host, (wc > 2))))