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

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

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



Remove the function sr_nx() 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 1bc5d59c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -78,11 +78,6 @@ static inline bool sr_kp(u32 sr_raw)
	return (sr_raw & 0x20000000) ? true: false;
}

static inline bool sr_nx(u32 sr_raw)
{
	return (sr_raw & 0x10000000) ? true: false;
}

static int kvmppc_mmu_book3s_32_xlate_bat(struct kvm_vcpu *vcpu, gva_t eaddr,
					  struct kvmppc_pte *pte, bool data,
					  bool iswrite);