pass: parser: Remove parsing of pass_compatible in resource conf 28/114628/5
authorWook Song <wook16.song@samsung.com>
Tue, 14 Feb 2017 08:28:03 +0000 (17:28 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 15 Feb 2017 03:48:46 +0000 (19:48 -0800)
This patch removes the parsing mechanism for the entry, pass_compatible,
in the Pass section of the resource conf file.

Change-Id: I27894e8cb97f798d29f215ee04a9c6af1fa51087
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/pass/pass-parser.c

index 5ae6cf1e403de3f1f837bbc09bb6df1f0e120b52..b84a151a8f20812d6498af19adbbd19e20bd3688 100644 (file)
@@ -174,20 +174,7 @@ static int pass_parse_core(struct parse_result *result, void *user_data)
        if (!result->section || !result->name || !result->value)
                return 0;
 
-       if (MATCH(result->name, "pass_compatible")) {
-               char compatible[BUFF_MAX];
-               int len, ret;
-
-               ret = sys_get_str(PROC_DT_COMPATIBLE, compatible);
-               if (ret < 0)
-                       return -EEXIST;
-
-               len = strlen(result->value);
-               if (strncmp(compatible, result->value, len)) {
-                       _I("Mismatch compatible string : %s\n", result->value);
-                       return -EINVAL;
-               }
-       } else if (MATCH(result->name, "pass_support"))
+        if (MATCH(result->name, "pass_support"))
                policy->state = atoi(result->value);
        else if (MATCH(result->name, "pass_gov_type"))
                policy->gov_type = atoi(result->value);