remove duplicated codes 10/239610/2
authorhj kim <backto.kim@samsung.com>
Tue, 28 Jul 2020 06:32:27 +0000 (15:32 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 28 Jul 2020 06:51:39 +0000 (06:51 +0000)
init/deinit of scan_req_mutex2 is called in msc_init_scan_thread() and msc_deinit_scan_thread()

Change-Id: I1f9d4356be8a4427ba25413d871212087356480d

src/scanner-v2/media-scanner-scan-v2.c

index 166dc1f..5d002ca 100644 (file)
@@ -1676,10 +1676,6 @@ void msc_init_scanner(void)
        if (!scan_queue2) scan_queue2 = g_async_queue_new();
        if (!reg_queue2) reg_queue2 = g_async_queue_new();
        if (!storage_queue2) storage_queue2 = g_async_queue_new();
-
-       /*Init mutex variable*/
-       g_mutex_init(&scan_req_mutex2);
-
 }
 
 void msc_deinit_scanner(void)
@@ -1687,10 +1683,6 @@ void msc_deinit_scanner(void)
        if (scan_queue2) g_async_queue_unref(scan_queue2);
        if (reg_queue2) g_async_queue_unref(reg_queue2);
        if (storage_queue2) g_async_queue_unref(storage_queue2);
-
-       /*Clear db mutex variable*/
-       g_mutex_clear(&scan_req_mutex2);
-
 }
 
 int msc_push_scan_request(ms_scan_type_e scan_type, ms_comm_msg_s *recv_msg)