Remove the unnecessary null check related with g_async_queue 01/239601/2
authorYoungHun Kim <yh8004.kim@samsung.com>
Tue, 28 Jul 2020 05:28:33 +0000 (14:28 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 28 Jul 2020 05:48:30 +0000 (14:48 +0900)
Change-Id: I95265493d0a55a63b7d9d459408266f4d0f59bcc

server/src/muse_server_private.c

index 5de95abbfd3674193dbe09b64f3c5046a7862643..6a9ee56ef2ae46e5e271d2df6e9e21d180fa5d0f 100644 (file)
@@ -479,8 +479,6 @@ static gpointer _ms_diag_check_connection_event_thread(gpointer data)
 
        while (ms_is_server_ready()) {
                dm = (ms_diag_msg_t *)g_async_queue_pop(d->msg_aq);
-               if (!dm)
-                       continue;
 
                LOGD("[%p] POP message (thread stop ? %d [%s])", dm, dm->thread_stop, ms_get_command_string(dm->cmd));
 
@@ -533,7 +531,6 @@ static void _ms_diag_init(void)
        }
 
        d->msg_aq = g_async_queue_new_full(g_free);
-       muse_return_if_fail(d->msg_aq);
 
        d->conn_event_thread = g_thread_try_new("diag_connection",
                _ms_diag_check_connection_event_thread, muse_server->main_loop, &error);