summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@arm.com>2017-01-25 17:41:41 +0000
committerGitHub <noreply@github.com>2017-01-25 17:41:41 +0000
commit27fdcb1f1c33600c0f81b8568f65e383d2dece6e (patch)
tree829e08cae70161ff8b12b127e53ef435a0b0d358
parentd15c5f394b957d370157046fbcaa010dec2a559e (diff)
parent952d888727fc45aeeec602dd8827b2c2b78f5979 (diff)
Merge pull request #17 from deggeman/rem_cpuset
Remove unsued cpuset in parse_thread_data()
-rw-r--r--src/rt-app_parse_config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rt-app_parse_config.c b/src/rt-app_parse_config.c
index 83794f3..e5ef87f 100644
--- a/src/rt-app_parse_config.c
+++ b/src/rt-app_parse_config.c
@@ -637,7 +637,6 @@ parse_thread_data(char *name, struct json_object *obj, int index,
{
char *policy;
char def_policy[RTAPP_POLICY_DESCR_LENGTH];
- struct array_list *cpuset;
struct json_object *cpuset_obj, *phases_obj, *cpu, *resources, *locks;
int i, cpu_idx, prior_def;
@@ -688,7 +687,6 @@ parse_thread_data(char *name, struct json_object *obj, int index,
assure_type_is(cpuset_obj, obj, "cpus", json_type_array);
data->cpuset_str = strdup(json_object_to_json_string(cpuset_obj));
data->cpuset = malloc(sizeof(cpu_set_t));
- cpuset = json_object_get_array(cpuset_obj);
CPU_ZERO(data->cpuset);
for (i = 0; i < json_object_array_length(cpuset_obj); i++) {
cpu = json_object_array_get_idx(cpuset_obj, i);