Apply tizen coding rule 72/83372/1 accepted/tizen/common/20160811.145512 accepted/tizen/ivi/20160812.010410 accepted/tizen/mobile/20160812.010355 accepted/tizen/tv/20160812.010403 accepted/tizen/wearable/20160812.010344 submit/tizen/20160810.065938
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 10 Aug 2016 10:11:23 +0000 (19:11 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 10 Aug 2016 10:11:23 +0000 (19:11 +0900)
Change-Id: Ib272a11dfdd15dc698c8e9bfeb5ff4e37ef6faa5

src/tbm_bufmgr.c
src/tbm_surface_internal.c

index 8586100..4e78ce2 100644 (file)
@@ -1352,12 +1352,10 @@ tbm_bufmgr_debug_show(tbm_bufmgr bufmgr)
                                        strncat(data, "  ", 2);
 
                                        value = _tbm_surface_internal_get_debug_data(surf, debug_old_data->key);
-                                       if (value) {
+                                       if (value)
                                                strncat(data, value, strlen(value) + 1);
-                                       }
-                                       else {
+                                       else
                                                strncat(data, "none", strlen("none") + 1);
-                                       }
                                }
                        }
                        TBM_DEBUG("%s\n", data);
index 91c3380..7b99c2c 100644 (file)
@@ -1325,7 +1325,7 @@ tbm_surface_internal_set_debug_data(tbm_surface_h surface, char *key, char *valu
 
        if (!LIST_IS_EMPTY(&surface->debug_data_list)) {
                LIST_FOR_EACH_ENTRY_SAFE(old_data, tmp, &surface->debug_data_list, item_link) {
-                       if (!strcmp(old_data->key ,key)) {
+                       if (!strcmp(old_data->keykey)) {
                                if (value)
                                        old_data->value = strdup(value);
                                else
@@ -1346,9 +1346,8 @@ tbm_surface_internal_set_debug_data(tbm_surface_h surface, char *key, char *valu
 
        if (!LIST_IS_EMPTY(&bufmgr->debug_key_list)) {
                LIST_FOR_EACH_ENTRY_SAFE(old_data, tmp, &bufmgr->debug_key_list, item_link) {
-                       if (!strcmp(old_data->key ,key)) {
+                       if (!strcmp(old_data->key, key))
                                return 1;
-                       }
                }
        }
 
@@ -1367,9 +1366,8 @@ _tbm_surface_internal_get_debug_data(tbm_surface_h surface, char *key)
 
        if (!LIST_IS_EMPTY(&surface->debug_data_list)) {
                LIST_FOR_EACH_ENTRY_SAFE(old_data, tmp, &surface->debug_data_list, item_link) {
-                       if (!strcmp(old_data->key, key)) {
+                       if (!strcmp(old_data->key, key))
                                return old_data->value;
-                       }
                }
        }