Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Alexander Graf <agraf@suse.de>

authored by

Rickard Strandqvist and committed by
Alexander Graf
a0499cf7 6178839b

-8
-8
arch/powerpc/kvm/book3s_paired_singles.c
··· 352 352 return kvmppc_get_field(inst, msb + 32, lsb + 32); 353 353 } 354 354 355 - /* 356 - * Replaces inst bits with ordering according to spec. 357 - */ 358 - static inline u32 inst_set_field(u32 inst, int msb, int lsb, int value) 359 - { 360 - return kvmppc_set_field(inst, msb + 32, lsb + 32, value); 361 - } 362 - 363 355 bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst) 364 356 { 365 357 if (!(vcpu->arch.hflags & BOOK3S_HFLAG_PAIRED_SINGLE))