Fix a static analysis issue 13/141513/1 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170816.145124 accepted/tizen/3.0/ivi/20170816.131206 accepted/tizen/3.0/mobile/20170816.131113 accepted/tizen/3.0/tv/20170816.131030 accepted/tizen/3.0/wearable/20170816.131052 submit/tizen_3.0/20170815.233247
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 20 Jul 2017 05:07:12 +0000 (14:07 +0900)
committerSemun Lee <semun.lee@samsung.com>
Tue, 1 Aug 2017 02:17:36 +0000 (02:17 +0000)
Change-Id: I4899846c02c4e9556328e15d4097199135a1819b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 9c24dac7bb86a28815efb7315db26197ad35ea1a)

src/pkgmgrinfo_pkginfo.c

index 0de8c24..4ef241e 100644 (file)
@@ -1514,8 +1514,6 @@ API int pkgmgrinfo_pkginfo_is_movable(pkgmgrinfo_pkginfo_h handle, bool *movable
        val = (char *)info->pkg_info->installlocation;
        if (strcmp(val, "internal-only") == 0)
                *movable = 0;
-       else if (strcmp(val, "prefer-external") == 0)
-               *movable = 1;
        else
                *movable = 1;