Change variable name 28/243228/3
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 4 Sep 2020 06:02:42 +0000 (15:02 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 7 Sep 2020 02:29:34 +0000 (11:29 +0900)
Change-Id: I1a16c2e2f10f7bcc9980f77c51433d883f786e4d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-common-system.c

index b3a5e9f..fb86abe 100644 (file)
@@ -179,7 +179,7 @@ static int __ms_gdbus_method_sync(const char *dest,
        GError *error = NULL;
        GVariant *reply_var = NULL;
        GVariantIter iter;
-       GVariant *child = NULL;
+       GVariant *block_device = NULL;
        int state = 0;
        ms_block_info_s *data = NULL;
 
@@ -212,24 +212,24 @@ static int __ms_gdbus_method_sync(const char *dest,
 
        g_variant_iter_init(&iter, reply_var);
 
-       while ((child = g_variant_iter_next_value(&iter))) {
-               if (g_variant_n_children(child) == 0) {
+       while ((block_device = g_variant_iter_next_value(&iter))) {
+               if (g_variant_n_children(block_device) == 0) {
                        MS_DBG_INFO("There is no external storage mounted..");
-                       g_variant_unref(child);
+                       g_variant_unref(block_device);
                        break;
                }
 
-               g_variant_get_child(child, 9, "i", &state);
+               g_variant_get_child(block_device, 9, "i", &state);
                if (state == 0) {
-                       g_variant_unref(child);
+                       g_variant_unref(block_device);
                        continue;
                }
 
                data = g_new0(ms_block_info_s, 1);
 
-               g_variant_get_child(child, 0, "i", &data->block_type);
-               g_variant_get_child(child, 6, "s", &data->mount_uuid);
-               g_variant_get_child(child, 8, "s", &data->mount_path);
+               g_variant_get_child(block_device, 0, "i", &data->block_type);
+               g_variant_get_child(block_device, 6, "s", &data->mount_uuid);
+               g_variant_get_child(block_device, 8, "s", &data->mount_path);
                data->state = state;
 
                MS_DBG_INFO("block_type : %d", data->block_type);
@@ -238,7 +238,7 @@ static int __ms_gdbus_method_sync(const char *dest,
                MS_DBG_INFO("state : %d", data->state);
 
                *dev_list = g_slist_append(*dev_list, data);
-               g_variant_unref(child);
+               g_variant_unref(block_device);
        }
 
        g_variant_unref(reply_var);
@@ -270,7 +270,7 @@ int ms_sys_get_device_list(ms_stg_type_e stg_type, GSList **dev_list)
        char *mount_path = NULL;
 
        err = usb_device_get_device_list(USB_MASS_STORAGE, &list);
-       MS_DBG_RETVM_IF(err != 0, MS_MEDIA_ERR_INTERNAL, "usb_device_get_device_list falied [%d]", err);
+       MS_DBG_RETVM_IF(err != 0, MS_MEDIA_ERR_INTERNAL, "usb_device_get_device_list failed [%d]", err);
 
        count = usb_device_list_get_count(list);
        if (count > 0) {