projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0441d71
)
intel_rdt plugin: fix some minor style issues
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:38:00 +0000
(18:38 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000
(19:40 +0100)
src/intel_rdt.c
patch
|
blob
|
history
diff --git
a/src/intel_rdt.c
b/src/intel_rdt.c
index
62ce9b8
..
df9c9c4
100644
(file)
--- 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;
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;
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 */
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();
if (cgroup->cores == NULL) {
ERROR(RDT_PLUGIN ": Error allocating cores array");
rdt_free_cgroups();