From c4e58c0f31c5044cfab0ffe80251df209844e9cc Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 11 Aug 2009 01:26:35 -0700 Subject: Fix issue 2045983 ToneGenerator: fix void statement. There is a void statement at line 917 of ToneGenerator.cpp: mState == TONE_IDLE; This problem is harmless as in current code this execution path is never taken; it can only happen if a "new" operator fails in prepareWave() which is a case we usually consider as unlikely in android audio framework. --- media/libmedia/ToneGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/libmedia/ToneGenerator.cpp b/media/libmedia/ToneGenerator.cpp index 3ea64ae..799c349 100644 --- a/media/libmedia/ToneGenerator.cpp +++ b/media/libmedia/ToneGenerator.cpp @@ -914,7 +914,7 @@ bool ToneGenerator::startTone(int toneType) { } } } else { - mState == TONE_IDLE; + mState = TONE_IDLE; } } else { LOGV("Delayed start\n"); -- cgit v1.1