diff options
author | Greg Hazel <ghazel@gmail.com> | 2012-04-18 21:41:48 -0700 |
---|---|---|
committer | Greg Hazel <ghazel@gmail.com> | 2012-04-18 21:41:48 -0700 |
commit | 46b806084e5426982fbf94cb8f4cf1a95ded6c54 (patch) | |
tree | 032584faebfcb84fc0e09ecc5cd073dc5a8537f2 /evdns.c | |
parent | 94d23360708d5c96b81e3c10fbf29b4c289f7462 (diff) | |
download | libevent-46b806084e5426982fbf94cb8f4cf1a95ded6c54.tar.gz |
remove redundant DNS_ERR_CANCEL check, move comment
Diffstat (limited to 'evdns.c')
-rw-r--r-- | evdns.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -2251,16 +2251,15 @@ nameserver_probe_callback(int result, char type, int count, int ttl, void *addre (void) addresses; if (result == DNS_ERR_CANCEL) { + /* We canceled this request because the nameserver came up + * for some other reason. Do not change our opinion about + * the nameserver. */ return; } EVDNS_LOCK(ns->base); ns->probe_request = NULL; - if (result == DNS_ERR_CANCEL) { - /* We canceled this request because the nameserver came up - * for some other reason. Do not change our opinion about - * the nameserver. */ - } else if (result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST) { + if (result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST) { /* this is a good reply */ nameserver_up(ns); } else { |