summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-12-13 11:23:47 -0800
committerGlenn Kasten <gkasten@google.com>2011-12-14 13:31:40 -0800
commit51e445f701b2173c44db70d5af0861351b6f69b9 (patch)
treec229212da605fe99e9b9cd8c9148c375f2ae5d74 /media
parente61fd281a8cb69ae45c5de4b160ab86226083152 (diff)
downloadframeworks_base-51e445f701b2173c44db70d5af0861351b6f69b9.zip
frameworks_base-51e445f701b2173c44db70d5af0861351b6f69b9.tar.gz
frameworks_base-51e445f701b2173c44db70d5af0861351b6f69b9.tar.bz2
Remove redundant clear()
Change-Id: Ie5e4e63cbc8fa85ef50451dddf8f149fa864b132
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/AudioTrack.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index 7e55fbd..8cbb501 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -809,9 +809,7 @@ status_t AudioTrack::createTrack_l(
LOGE("Could not get control block");
return NO_INIT;
}
- mAudioTrack.clear();
mAudioTrack = track;
- mCblkMemory.clear();
mCblkMemory = cblk;
mCblk = static_cast<audio_track_cblk_t*>(cblk->pointer());
android_atomic_or(CBLK_DIRECTION_OUT, &mCblk->flags);