Modify the condition expression 75/211275/4 accepted/tizen/unified/20190806.072202 submit/tizen/20190805.053702
authorMinje Ahn <minje.ahn@samsung.com>
Thu, 1 Aug 2019 04:00:01 +0000 (13:00 +0900)
committerhj kim <backto.kim@samsung.com>
Mon, 5 Aug 2019 05:31:23 +0000 (05:31 +0000)
Change-Id: Ie18f8fa16d6ed2ea7399d49c3af97c89979ee243
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
svc/media_controller_svc.c

index 433695f..2f0b314 100644 (file)
@@ -363,16 +363,12 @@ static int _mc_service_reset_db(uid_t uid)
 
 static gboolean _mc_service_is_valid_queue(mc_service_t *data)
 {
-       if ((data == NULL) || (data->request) == NULL || (data->request->queue == NULL))
-               return FALSE;
-       return TRUE;
+       return (data && data->request && data->request->queue);
 }
 
 static gboolean _mc_service_is_exist_pid(GList *list, int pid, mc_priv_type_e priv_type)
 {
-       int res = __mc_list_get_index(list, pid, priv_type);
-
-       return (res == -1) ? FALSE : TRUE;
+       return (__mc_list_get_index(list, pid, priv_type) != -1);
 }
 
 static gboolean _mc_service_is_valid_connection(GList *connected_list, mc_comm_msg_s *request_msg)