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

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

arch: powerpc: kvm: book3s_paired_singles.c: Remove unused function



Remove the function inst_set_field() 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 6178839b
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -352,14 +352,6 @@ static inline u32 inst_get_field(u32 inst, int msb, int lsb)
	return kvmppc_get_field(inst, msb + 32, lsb + 32);
}

/*
 * Replaces inst bits with ordering according to spec.
 */
static inline u32 inst_set_field(u32 inst, int msb, int lsb, int value)
{
	return kvmppc_set_field(inst, msb + 32, lsb + 32, value);
}

bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst)
{
	if (!(vcpu->arch.hflags & BOOK3S_HFLAG_PAIRED_SINGLE))