summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:24:01 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:24:01 +0000
commit378d9d2cd2db88f6f567565ad88a172bce5d806e (patch)
treecd95f00d5f678bf85d43c41a067b9eeca97dec74 /chrome
parent9b2dda1d525555d236ebaff7cf6f658937383549 (diff)
downloadchromium_src-378d9d2cd2db88f6f567565ad88a172bce5d806e.zip
chromium_src-378d9d2cd2db88f6f567565ad88a172bce5d806e.tar.gz
chromium_src-378d9d2cd2db88f6f567565ad88a172bce5d806e.tar.bz2
Fix no-op DCHECK
new_name_count_ is unsigned, so checking for >= 0 is useless. (Found by Coverity) Review URL: http://codereview.chromium.org/48152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/net/render_dns_master.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/net/render_dns_master.cc b/chrome/renderer/net/render_dns_master.cc
index 0c1ad2b..77ccb15 100644
--- a/chrome/renderer/net/render_dns_master.cc
+++ b/chrome/renderer/net/render_dns_master.cc
@@ -142,8 +142,8 @@ void RenderDnsMaster::DnsPrefetchNames(size_t max_count) {
DCHECK(1 <= max_count);
}
}
+ DCHECK_GE(new_name_count_, names.size());
new_name_count_ -= names.size();
- DCHECK(new_name_count_ >= 0);
RenderThread::current()->Send(new ViewHostMsg_DnsPrefetch(names));
}