Apply coding rule 32/58132/2 accepted/tizen/mobile/20160128.083133 accepted/tizen/tv/20160128.083154 accepted/tizen/wearable/20160128.083212 submit/tizen/20160128.054601
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 27 Jan 2016 23:09:46 +0000 (08:09 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 28 Jan 2016 05:43:32 +0000 (21:43 -0800)
Change-Id: I44d04bc946061d16fdc87bc01b17a94de7f0c7b4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/server/media-server-thumb.c

index e7ac4bb..add6599 100755 (executable)
@@ -299,9 +299,8 @@ int _ms_thumb_recv_msg(int sock, thumbMsg *msg)
 
 int _ms_thumb_set_buffer(thumbMsg *req_msg, unsigned char **buf, int *buf_size)
 {
-       if (req_msg == NULL || buf == NULL) {
+       if (req_msg == NULL || buf == NULL)
                return -1;
-       }
 
        int org_path_len = 0;
        int dst_path_len = 0;
@@ -341,9 +340,8 @@ gboolean _ms_thumb_agent_recv_msg_from_server()
 
        int sockfd = -1;
 
-       if (g_communicate_sock <= 0) {
+       if (g_communicate_sock <= 0)
                _ms_thumb_agent_prepare_tcp_socket(&g_communicate_sock, MS_THUMB_COMM_PORT);
-       }
 
        serv_addr_len = sizeof(serv_addr);