From: Rickard Strandqvist Date: Sun, 7 Dec 2014 18:11:48 +0000 (+0100) Subject: arch: powerpc: kvm: book3s_pr.c: Remove unused function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6178839b0180f23081834ee126472eb956121615;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git arch: powerpc: kvm: book3s_pr.c: Remove unused function 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 Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index cf2eb16846d1..f57383941d03 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -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) {