summaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/epoll-ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/bench/epoll-ctl.c')
-rw-r--r--tools/perf/bench/epoll-ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/bench/epoll-ctl.c b/tools/perf/bench/epoll-ctl.c
index 0c0a6e824934..2af067859966 100644
--- a/tools/perf/bench/epoll-ctl.c
+++ b/tools/perf/bench/epoll-ctl.c
@@ -224,7 +224,7 @@ static int do_threads(struct worker *worker, struct cpu_map *cpu)
pthread_attr_t thread_attr, *attrp = NULL;
cpu_set_t cpuset;
unsigned int i, j;
- int ret;
+ int ret = 0;
if (!noaffinity)
pthread_attr_init(&thread_attr);