Apply codingrule check 96/145996/1 submit/tizen/20170824.110325
authorjh8801.jung <jh8801.jung@samsung.com>
Thu, 24 Aug 2017 10:55:01 +0000 (19:55 +0900)
committerjh8801.jung <jh8801.jung@samsung.com>
Thu, 24 Aug 2017 10:56:51 +0000 (19:56 +0900)
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: I16219980f135f72bd5f9627a446505fb8edbad8a

packaging/mtp-initiator.spec
src/daemon/mtp_daemon_event.c
src/daemon/mtp_daemon_gdbus_manager.c

index 302c5dd6992be91ecf90f8e5ab7b67b51906e8d7..11b54abd50ecf68444d2e80c1c57200740ec25f2 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       mtp-initiator
 Summary:    mtp(media transfer protocol) initiator
-Version:    1.4.23
+Version:    1.4.24
 Release:    0
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index c20788c578e74347eb13d910fcd6b46d5d7de8df..3a284acafc9d855ff870eaa911877f12dc90d088 100755 (executable)
@@ -69,9 +69,8 @@ static int __search_empty_slot(mtp_context *mtp_ctx)
        int slot;
 
        for (slot = 1; slot < MTP_MAX_SLOT; slot++) {
-               if (mtp_ctx->device_list->device_info_list[slot] == NULL) {
+               if (mtp_ctx->device_list->device_info_list[slot] == NULL)
                        return slot;
-               }
        }
 
        return -1;
@@ -353,11 +352,10 @@ static void* __event_thread(gpointer dev, gpointer data)
 
                        /* scan db and if exist, then update db */
                        if (object_info != NULL && device_id >= 0) {
-                               if (mtp_daemon_db_is_exist(device_id, object_info->StorageID, param1, mtp_ctx) == true) {
+                               if (mtp_daemon_db_is_exist(device_id, object_info->StorageID, param1, mtp_ctx) == true)
                                        mtp_daemon_db_update(device_id, param1, object_info, mtp_ctx);
-                               } else {
+                               else
                                        mtp_daemon_db_insert(device_id, object_info->StorageID, param1, object_info, mtp_ctx);
-                               }
                        }
 
                        g_free(object_info);
index fcacf6b24169ac7ab80ff3938be12f2eaf47ad8c..4e34a8bed1d7fff0b3efb0aa441ddb866409d4ee 100755 (executable)
@@ -393,7 +393,7 @@ static void __manager_get_partial_object_thread_func(gpointer user_data)
                        }
 
                        if (data != NULL)
-                               free (data);
+                               free(data);
 
                        close(fd);
                }
@@ -469,7 +469,7 @@ static void __manager_get_thumbnail_thread_func(gpointer user_data)
                        }
 
                        if (thumb_data != NULL)
-                               free (thumb_data);
+                               free(thumb_data);
 
                        close(fd);
                }