Skip to content

Commit

Permalink
perf kvm: Remove typecast in init_kvm_event_record
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Oct 8, 2012
1 parent 2aa8eab commit b880dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/perf/builtin-kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit b880dee

Please sign in to comment.