Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6178839b authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Alexander Graf
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 54ca162a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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)
{