summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-kvm.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2012-10-08 11:17:30 -0600
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-08 17:14:57 -0300
commitb880deeaffd9df0cec9a4496447d0d7fd78086f2 (patch)
treeddebdc1764259d7a904981908a433afaa386f5b6 /tools/perf/builtin-kvm.c
parent2aa8eab029b319b2b458b3ba393bbba31961ea96 (diff)
downloadop-kernel-dev-b880deeaffd9df0cec9a4496447d0d7fd78086f2.zip
op-kernel-dev-b880deeaffd9df0cec9a4496447d0d7fd78086f2.tar.gz
perf kvm: Remove typecast in init_kvm_event_record
Not needed after changing i to unsigned int. Signed-off-by: David Ahern <dsahern@gmail.com> Cc: Dong Hao <haodong@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/1349716656-48165-7-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-kvm.c')
-rw-r--r--tools/perf/builtin-kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c
index b98095e..8416754 100644
--- a/tools/perf/builtin-kvm.c
+++ b/tools/perf/builtin-kvm.c
@@ -313,9 +313,9 @@ struct vcpu_event_record {
static void init_kvm_event_record(struct perf_kvm *kvm)
{
- int i;
+ unsigned int i;
- for (i = 0; i < (int)EVENTS_CACHE_SIZE; i++)
+ for (i = 0; i < EVENTS_CACHE_SIZE; i++)
INIT_LIST_HEAD(&kvm->kvm_events_cache[i]);
}
OpenPOWER on IntegriCloud