The return value is not used, thus we can avoid the unussed local variable. Reviewed-by: Daniel Wagner <dwagner@xxxxxxx> --- src/cyclictest/cyclictest.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 35c57c782f30..5c738005f778 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1718,18 +1718,13 @@ int main(int argc, char **argv) /* Restrict the main pid to the affinity specified by the user */ if (affinity_mask) { - int res; - errno = 0; - res = numa_sched_setaffinity(getpid(), affinity_mask); - if (res != 0) + if (numa_sched_setaffinity(getpid(), affinity_mask) != 0) warn("Couldn't setaffinity in main thread: %s\n", strerror(errno)); } if (trigger) { - int retval; - retval = trigger_init(); - if (retval != 0) { + if (trigger_init() != 0) { fprintf(stderr, "trigger_init() failed\n"); exit(EXIT_FAILURE); } -- 2.29.2