perf kvm: Remove typecast in init_kvm_event_record
authorDavid Ahern <[email protected]>
Mon, 8 Oct 2012 17:17:30 +0000 (11:17 -0600)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 8 Oct 2012 20:14:57 +0000 (17:14 -0300)
Not needed after changing i to unsigned int.

Signed-off-by: David Ahern <[email protected]>
Cc: Dong Hao <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Xiao Guangrong <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-kvm.c

index b98095edf1f4906a3e7cc67d45fbf4f1d35777bb..8416754b2bc3fda0e02ad2395b4d5b3eb1333122 100644 (file)
@@ -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]);
 }