summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 04:01:01 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 04:01:01 +0000
commita1643545a1ec3b4eb7b9a6bf083f4668da124524 (patch)
tree6689980e96d78d82082eaa3a6b2e0e753cf605af /ppapi
parent934fe1949ec85a440f3ca2fe5ffa40f4ad8abfcc (diff)
downloadchromium_src-a1643545a1ec3b4eb7b9a6bf083f4668da124524.zip
chromium_src-a1643545a1ec3b4eb7b9a6bf083f4668da124524.tar.gz
chromium_src-a1643545a1ec3b4eb7b9a6bf083f4668da124524.tar.bz2
Coverity: Remove dead code in ppapi::AudioImpl::AudioImpl.
BUG=none TEST=none CID=16845 Review URL: http://codereview.chromium.org/7218015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/shared_impl/audio_impl.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/ppapi/shared_impl/audio_impl.cc b/ppapi/shared_impl/audio_impl.cc
index 09d4589..42254f5 100644
--- a/ppapi/shared_impl/audio_impl.cc
+++ b/ppapi/shared_impl/audio_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -89,9 +89,6 @@ void AudioImpl::Run() {
while (sizeof(pending_data) ==
socket_->Receive(&pending_data, sizeof(pending_data)) &&
pending_data >= 0) {
- // Exit the thread on pause.
- if (pending_data < 0)
- return;
callback_(buffer, shared_memory_size_, user_data_);
}
}