Re: [PATCH v2] KVM: X86: deprecate obsolete KVM_GET_CPUID2 ioctl

From: Paolo Bonzini
Date: Mon Mar 02 2020 - 11:31:36 EST


On 27/02/20 12:36, Vitaly Kuznetsov wrote:
>> - if (copy_to_user(cpuid_arg, &cpuid, sizeof(cpuid)))
>> - goto out;
>> - r = 0;
>> + r = -EINVAL;
>> break;
>> }
> Braces are not really needed not but all other cases in the switch have
> it so let's leave them here too.
>

We can remove the case altogether.

Paolo