From: Matthias Runge Date: Thu, 8 Aug 2019 14:45:34 +0000 (+0200) Subject: RDT-compile fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=616320b75ef2ba550a835f4bd221d5cbd46660bf;p=collectd.git RDT-compile fix include feedback from review, make the code easier. Signed-off-by: Matthias Runge --- diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 62848dbf..99c3ed0d 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -325,11 +325,7 @@ static int strlisttoarray(char *str_list, char ***names, size_t *names_num) { continue; if ((isdupstr((const char **)*names, *names_num, token))) { - if (str_list != NULL) - ERROR(RDT_PLUGIN ": Duplicated process name \'%s\' in group \'%s\'", - token, str_list); - else - ERROR(RDT_PLUGIN ": Duplicated process name \'%s\'", token); + ERROR(RDT_PLUGIN ": Duplicated process name \'%s\'", token); return -EINVAL; } else {