Apply tizen coding rule 84/74484/1 accepted/tizen/common/20160620.162455 accepted/tizen/ivi/20160617.082440 accepted/tizen/mobile/20160617.081914 accepted/tizen/tv/20160617.082026 accepted/tizen/wearable/20160617.082126 submit/tizen/20160616.065630
authorJiyong Min <jiyong.min@samsung.com>
Tue, 14 Jun 2016 10:11:42 +0000 (19:11 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Tue, 14 Jun 2016 10:12:19 +0000 (19:12 +0900)
Change-Id: I246dc867786289295bd7ebc56f1836eb21069794
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
svc/media_controller_db_util.c

index 003d20a..8da5ae9 100644 (file)
@@ -213,9 +213,8 @@ int mc_db_util_connect(void **handle, uid_t uid)
        sqlite3_free(sql);
        if (SQLITE_OK != ret) {
 
-               if (*handle) {
+               if (*handle)
                        mc_error("[error when change the journal mode] %s", sqlite3_errmsg(*handle));
-               }
 
                db_util_close(*handle);
                *handle = NULL;