@@ -1713,18 +1713,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);
}
The return value is not used, thus we can avoid the unussed local variable. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- src/cyclictest/cyclictest.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)