Fix static analyzer issue 31/169231/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 5 Feb 2018 05:59:22 +0000 (14:59 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 5 Feb 2018 05:59:22 +0000 (14:59 +0900)
Remove unreachable codes.

Change-Id: I9f5713983575a5d3acfef1b2ae7189e82e15b9c2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
plugin/app2sd/server/app2sd_internals.c

index b64cf57..4133c9f 100644 (file)
@@ -700,13 +700,8 @@ static int _app2sd_move_app_to_external(const char *pkgid, GList *dir_list,
                _D("app2archive, temp_dir_path(%s)", temp_dir_path);
                ret = _app2sd_move_to_archive(temp_dir_path, app_archive_path);
                if (ret) {
-                       if (ret == APP2EXT_ERROR_ACCESS_FILE) {
-                               _E("unable to access (%s)", temp_dir_path);
-                       } else {
-                               _E("unable to copy from (%s) to (%s)",
-                                               temp_dir_path,
-                                               app_archive_path);
-                       }
+                       _E("unable to copy from (%s) to (%s)",
+                                       temp_dir_path, app_archive_path);
                        goto ERR;
                }
        }