summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-28 07:21:51 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-28 07:21:51 -0800
commit3e9c3a1d34960cd258f294d31135ab6bf76179d5 (patch)
treec4fdfd452a5249202c38bdd5fa06acc94af31402 /services
parenta17c820c556fddf7ddd96b82b3e9874e340ffafd (diff)
parenta3b09254d44cd8d66ec947abe547538c4cfeaa89 (diff)
downloadframeworks_av-3e9c3a1d34960cd258f294d31135ab6bf76179d5.zip
frameworks_av-3e9c3a1d34960cd258f294d31135ab6bf76179d5.tar.gz
frameworks_av-3e9c3a1d34960cd258f294d31135ab6bf76179d5.tar.bz2
Merge "Simplify removeNotificationClient"
Diffstat (limited to 'services')
-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 30f0244..1805096 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();