Replace min_t() with the simpler min() macro since the values are
unsigned and compatible.
Signed-off-by: Thorsten Blum <redacted>
---
arch/powerpc/kvm/booke.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Replace min_t() with the simpler min() macro since the values are
unsigned and compatible.
Signed-off-by: Thorsten Blum <redacted>
---
arch/powerpc/kvm/powerpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -635,9 +635,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)*implementationsjustcountonlineCPUs.*/if(hv_enabled)-r=min_t(unsignedint,num_present_cpus(),KVM_MAX_VCPUS);+r=min(num_present_cpus(),KVM_MAX_VCPUS);else-r=min_t(unsignedint,num_online_cpus(),KVM_MAX_VCPUS);+r=min(num_online_cpus(),KVM_MAX_VCPUS);break;caseKVM_CAP_MAX_VCPUS:r=KVM_MAX_VCPUS;