diff options
| author | 2012-02-28 07:21:51 -0800 | |
|---|---|---|
| committer | 2012-02-28 07:21:51 -0800 | |
| commit | c2dc1c4e573df71ba86e3df1a9ba7d14c7cbca81 (patch) | |
| tree | 841095e1ee9d480c39fc223168ab9ed12e67c3e0 | |
| parent | eb70fe50dd713bb4d9e4b8c06aabf22e2a165472 (diff) | |
| parent | 538529b9dcdb44c6aec631916f83611355b7ee8a (diff) | |
Merge "Simplify removeNotificationClient"
| -rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 7 |
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(); |