KVM: PPC: Book3S: Eliminate some unnecessary checks
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 20 Nov 2017 08:56:27 +0000 (19:56 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 23 Nov 2017 03:23:34 +0000 (14:23 +1100)
commit9aa6825bbb7526a7fdec137b7cc3b042581cd2fc
tree1334c4f2709568f92949dc14190693166ffd2b32
parentc0093f1a38a0fd6c32a2269f0533bb13fb95143d
KVM: PPC: Book3S: Eliminate some unnecessary checks

In an excess of caution, commit 6f63e81bda98 ("KVM: PPC: Book3S: Add
MMIO emulation for FP and VSX instructions", 2017-02-21) included
checks for the case that vcpu->arch.mmio_vsx_copy_nums is less than
zero, even though its type is u8.  This causes a Coverity warning,
so we remove the check for < 0.  We also adjust the associated
comment to be more accurate ("4 or less" rather than "less than 4").

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/powerpc.c