Apply tizen coding rule
[platform/core/multimedia/libmedia-service.git] / test / plugin / media_svc_plugin_test.c
index 19ffe98..27efa25 100755 (executable)
@@ -44,9 +44,8 @@ int __load_functions()
        msg_print(__LINE__, "__load_functions");
 
        funcHandle = dlopen(PLUGIN_SO_FILE_NAME, RTLD_LAZY);
-       if (!funcHandle) {
+       if (!funcHandle)
                fprintf(stderr, "error: %s\n", dlerror());
-       }
 
        svc_connect                     = dlsym(funcHandle, "connect");
        svc_disconnect          = dlsym(funcHandle, "disconnect");
@@ -67,9 +66,8 @@ int __unload_functions(void)
 {
        msg_print(__LINE__, "__unload_functions");
 
-       if (funcHandle) {
+       if (funcHandle)
                dlclose(funcHandle);
-       }
 
        return 0;
 }
@@ -107,11 +105,10 @@ int main()
 
 #if 1
        ret = media_svc_create_table(tzplatform_getuid(TZ_USER_NAME));
-       if (ret < 0) {
+       if (ret < 0)
                msg_print(__LINE__, "table already exists");
-       } else {
+       else
                msg_print(__LINE__, "table create success");
-       }
 #endif
 
 #if 1
@@ -155,11 +152,10 @@ int main()
        } /* End of While */
 
        ret = media_svc_insert_folder(db_handle, 0, path);
-       if (ret < 0) {
+       if (ret < 0)
                msg_print(__LINE__, "media_svc_insert_folder error ");
-       } else {
+       else
                msg_print(__LINE__, "media_svc_insert_folder success");
-       }
 #endif
 
        /*folder test ================================================== */