diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 23:01:29 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 23:01:29 +0000 |
commit | a90e581decd27a8ce1af5918f3009b0d7d8e2d6f (patch) | |
tree | 88d3f70d75e7cd9a8d520f9ca682ba068830c68f /base/waitable_event_win.cc | |
parent | c4056d2529dc0a2fea964fd342fea86d93199735 (diff) | |
download | chromium_src-a90e581decd27a8ce1af5918f3009b0d7d8e2d6f.zip chromium_src-a90e581decd27a8ce1af5918f3009b0d7d8e2d6f.tar.gz chromium_src-a90e581decd27a8ce1af5918f3009b0d7d8e2d6f.tar.bz2 |
Coverity: Remove a check that can never be true. result is unsigned, so it can't be less than 0.
CID=577
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/249049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27678 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/waitable_event_win.cc')
-rw-r--r-- | base/waitable_event_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/waitable_event_win.cc b/base/waitable_event_win.cc index ac85c5c..21ee0a9 100644 --- a/base/waitable_event_win.cc +++ b/base/waitable_event_win.cc @@ -86,7 +86,7 @@ size_t WaitableEvent::WaitMany(WaitableEvent** events, size_t count) { WaitForMultipleObjects(count, handles, FALSE, // don't wait for all the objects INFINITE); // no timeout - if (result < WAIT_OBJECT_0 || result >= WAIT_OBJECT_0 + count) { + if (result >= WAIT_OBJECT_0 + count) { NOTREACHED() << "WaitForMultipleObjects failed: " << GetLastError(); return 0; } |