From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:38:00 +0000 (+0100) Subject: intel_rdt plugin: fix some minor style issues X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e1ec3684a913756f605fb1193dfcfe167415d49e;p=collectd.git intel_rdt plugin: fix some minor style issues --- diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 62ce9b80..df9c9c44 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -124,7 +124,7 @@ static void rdt_free_cgroups(void) { static int rdt_default_cgroups(void) { unsigned num_cores = g_rdt->pqos_cpu->num_cores; - g_rdt->cores.cgroups = calloc(num_cores, sizeof(*(g_rdt->cores.cgroups))); + g_rdt->cores.cgroups = calloc(num_cores, sizeof(*g_rdt->cores.cgroups)); if (g_rdt->cores.cgroups == NULL) { ERROR(RDT_PLUGIN ": Error allocating core groups array"); return -ENOMEM; @@ -137,7 +137,7 @@ static int rdt_default_cgroups(void) { char desc[DATA_MAX_NAME_LEN]; /* set core group info */ - cgroup->cores = calloc(1, sizeof(*(cgroup->cores))); + cgroup->cores = calloc(1, sizeof(*cgroup->cores)); if (cgroup->cores == NULL) { ERROR(RDT_PLUGIN ": Error allocating cores array"); rdt_free_cgroups();