From 616320b75ef2ba550a835f4bd221d5cbd46660bf Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Thu, 8 Aug 2019 16:45:34 +0200 Subject: [PATCH] RDT-compile fix include feedback from review, make the code easier. Signed-off-by: Matthias Runge --- src/intel_rdt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 { -- 2.11.0