From 639211895adb7db5164bfab8b607a9b51ce66f1a Mon Sep 17 00:00:00 2001 From: "ctguil@chromium.org" Date: Fri, 11 Mar 2011 02:04:36 +0000 Subject: Fix Coverity NO_EFFECT defect. Comparing unsigned greater than or equal zero is always true. CID=8947 BUG=none TEST=none Review URL: http://codereview.chromium.org/6667022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77762 0039d316-1c4b-4281-b951-d872f2087c98 --- base/third_party/symbolize/symbolize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base') diff --git a/base/third_party/symbolize/symbolize.cc b/base/third_party/symbolize/symbolize.cc index 3465de6..684361f 100644 --- a/base/third_party/symbolize/symbolize.cc +++ b/base/third_party/symbolize/symbolize.cc @@ -123,7 +123,7 @@ _START_GOOGLE_NAMESPACE_ // success, return the number of bytes read. Otherwise, return -1. static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) { SAFE_ASSERT(fd >= 0); - SAFE_ASSERT(count >= 0 && count <= std::numeric_limits::max()); + SAFE_ASSERT(count <= std::numeric_limits::max()); char *buf0 = reinterpret_cast(buf); ssize_t num_bytes = 0; while (num_bytes < count) { -- cgit v1.1