From: Kitae Kim Date: Thu, 26 Jun 2014 13:14:47 +0000 (+0900) Subject: brillcodec: remove unused mutex_unlock method. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~228^2^2~106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8f4ae9714b28114130635cce8226aa91ea0c187;p=sdk%2Femulator%2Fqemu.git brillcodec: remove unused mutex_unlock method. qemu_mutex_unlock was used at wrong place. It might cause SEGV problem because this device tries to unlock invalid mutex. Change-Id: I153406e583b26a813883d7e48ecd5b7093f420ea Signed-off-by: Kitae Kim --- diff --git a/tizen/src/hw/maru_brill_codec.c b/tizen/src/hw/maru_brill_codec.c index 0ef27e47ae..2287bcb12d 100644 --- a/tizen/src/hw/maru_brill_codec.c +++ b/tizen/src/hw/maru_brill_codec.c @@ -214,17 +214,6 @@ static void maru_brill_codec_wakeup_threads(MaruBrillCodecState *s, int api_inde qemu_mutex_lock(&s->context_mutex); -#if 0 - if (ioparam->api_index == CODEC_DEINIT) { - if (s->context[ioparam->ctx_index].occupied_thread) { - s->context[ioparam->ctx_index].requested_close = true; - INFO("make running thread to handle deinit\n"); - qemu_mutex_unlock(&s->context_mutex); - return; - } - } else -#endif - if (ioparam->api_index != CODEC_INIT) { if (!s->context[ioparam->ctx_index].opened_context) { INFO("abandon api %d for context %d\n", @@ -1904,7 +1893,6 @@ static void maru_brill_codec_write(void *opaque, hwaddr addr, if (s->context[ctx_index].occupied_thread) { s->context[ctx_index].requested_close = true; INFO("make running thread to handle deinit\n"); - qemu_mutex_unlock(&s->context_mutex); } else { maru_brill_codec_release_context(s, ctx_index); }