diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-07 20:55:29 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:50 -0500 |
commit | 7e620d16b8838bc0ad5b27d2dd55796270cd588c (patch) | |
tree | 84d755dd2214324c43b49a13c0340b534c3f3138 /drivers/kvm/lapic.c | |
parent | 76fafa5e22bd82e92d2734852ba23f17322d675a (diff) |
KVM: Remove gratuitous casts from lapic.c
Since vcpu->apic is of the correct type, there's not need to cast.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/lapic.c')
-rw-r--r-- | drivers/kvm/lapic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/kvm/lapic.c b/drivers/kvm/lapic.c index 8e8dab08be58..554e73ad33f0 100644 --- a/drivers/kvm/lapic.c +++ b/drivers/kvm/lapic.c | |||
@@ -172,7 +172,7 @@ static inline int apic_find_highest_irr(struct kvm_lapic *apic) | |||
172 | 172 | ||
173 | int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu) | 173 | int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu) |
174 | { | 174 | { |
175 | struct kvm_lapic *apic = (struct kvm_lapic *)vcpu->apic; | 175 | struct kvm_lapic *apic = vcpu->apic; |
176 | int highest_irr; | 176 | int highest_irr; |
177 | 177 | ||
178 | if (!apic) | 178 | if (!apic) |
@@ -783,7 +783,7 @@ void kvm_free_lapic(struct kvm_vcpu *vcpu) | |||
783 | 783 | ||
784 | void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8) | 784 | void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8) |
785 | { | 785 | { |
786 | struct kvm_lapic *apic = (struct kvm_lapic *)vcpu->apic; | 786 | struct kvm_lapic *apic = vcpu->apic; |
787 | 787 | ||
788 | if (!apic) | 788 | if (!apic) |
789 | return; | 789 | return; |
@@ -792,7 +792,7 @@ void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8) | |||
792 | 792 | ||
793 | u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu) | 793 | u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu) |
794 | { | 794 | { |
795 | struct kvm_lapic *apic = (struct kvm_lapic *)vcpu->apic; | 795 | struct kvm_lapic *apic = vcpu->apic; |
796 | u64 tpr; | 796 | u64 tpr; |
797 | 797 | ||
798 | if (!apic) | 798 | if (!apic) |
@@ -805,7 +805,7 @@ EXPORT_SYMBOL_GPL(kvm_lapic_get_cr8); | |||
805 | 805 | ||
806 | void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value) | 806 | void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value) |
807 | { | 807 | { |
808 | struct kvm_lapic *apic = (struct kvm_lapic *)vcpu->apic; | 808 | struct kvm_lapic *apic = vcpu->apic; |
809 | 809 | ||
810 | if (!apic) { | 810 | if (!apic) { |
811 | value |= MSR_IA32_APICBASE_BSP; | 811 | value |= MSR_IA32_APICBASE_BSP; |
@@ -882,7 +882,7 @@ EXPORT_SYMBOL_GPL(kvm_lapic_reset); | |||
882 | 882 | ||
883 | int kvm_lapic_enabled(struct kvm_vcpu *vcpu) | 883 | int kvm_lapic_enabled(struct kvm_vcpu *vcpu) |
884 | { | 884 | { |
885 | struct kvm_lapic *apic = (struct kvm_lapic *)vcpu->apic; | 885 | struct kvm_lapic *apic = vcpu->apic; |
886 | int ret = 0; | 886 | int ret = 0; |
887 | 887 | ||
888 | if (!apic) | 888 | if (!apic) |