arch: powerpc: kvm: book3s_pr.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 7 Dec 2014 18:11:48 +0000 (19:11 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 17 Dec 2014 12:13:16 +0000 (13:13 +0100)
Remove the function get_fpr_index() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_pr.c

index cf2eb16..f573839 100644 (file)
@@ -644,11 +644,6 @@ int kvmppc_handle_pagefault(struct kvm_run *run, struct kvm_vcpu *vcpu,
        return r;
 }
 
-static inline int get_fpr_index(int i)
-{
-       return i * TS_FPRWIDTH;
-}
-
 /* Give up external provider (FPU, Altivec, VSX) */
 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr)
 {