Skip to content

Commit

Permalink
arch: powerpc: kvm: book3s_pr.c: Remove unused function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rickard Strandqvist authored and Alexander Graf committed Dec 17, 2014
1 parent 54ca162 commit 6178839
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/powerpc/kvm/book3s_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6178839

Please sign in to comment.