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

Configure Feed

Select the types of activity you want to include in your feed.

KVM: s390: Remove unused return variable in kvm_arch_vcpu_ioctl_set_fpu

kvm_arch_vcpu_ioctl_set_fpu() always returns 0 and the local return
variable 'ret' is not used anymore. Remove it.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>

authored by

Thorsten Blum and committed by
Janosch Frank
7d5136ed 14542a0a

+1 -3
+1 -3
arch/s390/kvm/kvm-s390.c
··· 4249 4249 4250 4250 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) 4251 4251 { 4252 - int ret = 0; 4253 - 4254 4252 vcpu_load(vcpu); 4255 4253 4256 4254 vcpu->run->s.regs.fpc = fpu->fpc; ··· 4259 4261 memcpy(vcpu->run->s.regs.fprs, &fpu->fprs, sizeof(fpu->fprs)); 4260 4262 4261 4263 vcpu_put(vcpu); 4262 - return ret; 4264 + return 0; 4263 4265 } 4264 4266 4265 4267 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu)