diff options
author | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 02:04:36 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 02:04:36 +0000 |
commit | 639211895adb7db5164bfab8b607a9b51ce66f1a (patch) | |
tree | a5f74025fdbd14932711e0693ba74378a75b40c7 /base | |
parent | ee2586bcab256dd2133a9dd31fe8c02a9938dad8 (diff) | |
download | chromium_src-639211895adb7db5164bfab8b607a9b51ce66f1a.zip chromium_src-639211895adb7db5164bfab8b607a9b51ce66f1a.tar.gz chromium_src-639211895adb7db5164bfab8b607a9b51ce66f1a.tar.bz2 |
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
Diffstat (limited to 'base')
-rw-r--r-- | base/third_party/symbolize/symbolize.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<ssize_t>::max()); + SAFE_ASSERT(count <= std::numeric_limits<ssize_t>::max()); char *buf0 = reinterpret_cast<char *>(buf); ssize_t num_bytes = 0; while (num_bytes < count) { |