summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Glenn Kasten <gkasten@google.com> 2012-02-28 07:21:51 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-02-28 07:21:51 -0800
commitc2dc1c4e573df71ba86e3df1a9ba7d14c7cbca81 (patch)
tree841095e1ee9d480c39fc223168ab9ed12e67c3e0
parenteb70fe50dd713bb4d9e4b8c06aabf22e2a165472 (diff)
parent538529b9dcdb44c6aec631916f83611355b7ee8a (diff)
Merge "Simplify removeNotificationClient"
-rw-r--r--services/audioflinger/AudioFlinger.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 30f02442f043..180509661b5c 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1029,12 +1029,7 @@ void AudioFlinger::removeNotificationClient(pid_t pid)
{
Mutex::Autolock _l(mLock);
- ssize_t index = mNotificationClients.indexOfKey(pid);
- if (index >= 0) {
- sp <NotificationClient> client = mNotificationClients.valueFor(pid);
- ALOGV("removeNotificationClient() %p, pid %d", client.get(), pid);
- mNotificationClients.removeItem(pid);
- }
+ mNotificationClients.removeItem(pid);
ALOGV("%d died, releasing its sessions", pid);
size_t num = mAudioSessionRefs.size();