diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2017-01-24 17:46:10 +0000 |
---|---|---|
committer | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2017-01-25 16:56:59 +0000 |
commit | 952d888727fc45aeeec602dd8827b2c2b78f5979 (patch) | |
tree | 829e08cae70161ff8b12b127e53ef435a0b0d358 | |
parent | d15c5f394b957d370157046fbcaa010dec2a559e (diff) |
Remove unsued cpuset in parse_thread_data()
No need to retrieve the cpuset via json_object_get_array(). We use
json_object_array_get_idx() instead to get the cpus of the cpuset
instead.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Acked-by: Juri Lelli <juri.lelli@arm.com>
-rw-r--r-- | src/rt-app_parse_config.c | 2 |
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); |