Apply tizen coding rule 41/147541/1 accepted/tizen/unified/20170906.060718 submit/tizen/20170905.045152
authorHaejeong Kim <backto.kim@samsung.com>
Tue, 5 Sep 2017 00:54:05 +0000 (09:54 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Tue, 5 Sep 2017 00:54:05 +0000 (09:54 +0900)
Change-Id: I9d231edf1e0a186a292bd5b3253d2ef0511fd590

packaging/capi-content-media-content.spec
src/media_content.c
src/media_info.c

index 4629ea2..b28f1f4 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.3.25
+Version:    0.3.26
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index f6ea0c0..20ec5f9 100755 (executable)
@@ -951,9 +951,8 @@ static int __media_content_create_attribute_handles(void)
        media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
 
        ret = _media_filter_attribute_create(&g_alias_attr_handle);
-       if (ret != MEDIA_CONTENT_ERROR_NONE) {
+       if (ret != MEDIA_CONTENT_ERROR_NONE)
                goto ERROR;
-       }
 
        attribute_s *_attr = (attribute_s*)g_attr_handle;
        attribute_s *_alias_attr = (attribute_s*)g_alias_attr_handle;
index de94e86..d55ef5f 100755 (executable)
@@ -296,11 +296,10 @@ int __media_info_get_thumbnail_to_remove(const char *condition_query, const char
 
        while (sqlite3_step(stmt) == SQLITE_ROW) {
                thumbnail_path = g_strdup((const char *)sqlite3_column_text(stmt, 0));
-               if (STRING_VALID(thumbnail_path)) {
+               if (STRING_VALID(thumbnail_path))
                        g_array_append_val(*thumb_list, thumbnail_path);
-               } else {
+               else
                        SAFE_FREE(thumbnail_path);
-               }
        }
 
        SQLITE3_FINALIZE(stmt);