summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/arm/util
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2018-02-12 13:32:37 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-02-16 14:55:40 -0300
commitd2785de15f1bd42d613d56bbac5a007e7293b874 (patch)
treefb9abf83a911122ef07778e7d4ea0845eeb01dd4 /tools/perf/arch/arm/util
parent147c508f3004df6e2958f6c8867909531c2a15e2 (diff)
perf auxtrace arm: Fixing uninitialised variable
When working natively on arm64 the compiler gets pesky and complains that variable 'i' is uninitialised, something that breaks the compilation. Here no further checks are needed since variable 'found_spe' can only be true if variable 'i' has been initialised as part of the for loop. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1518467557-18505-4-git-send-email-mathieu.poirier@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/arm/util')
-rw-r--r--tools/perf/arch/arm/util/auxtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/arm/util/auxtrace.c b/tools/perf/arch/arm/util/auxtrace.c
index 2323581b157d..fa639e3e52ac 100644
--- a/tools/perf/arch/arm/util/auxtrace.c
+++ b/tools/perf/arch/arm/util/auxtrace.c
@@ -68,7 +68,7 @@ struct auxtrace_record
bool found_spe = false;
static struct perf_pmu **arm_spe_pmus = NULL;
static int nr_spes = 0;
- int i;
+ int i = 0;
if (!evlist)
return NULL;