[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 08/11] x86/ucode/amd: Rename bufsize to size in cpu_request_microcode()



On 31.03.2020 12:05, Andrew Cooper wrote:
> To simplify future cleanup, rename this variable.
> 
> No functional change.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

> @@ -438,7 +437,7 @@ static struct microcode_patch 
> *cpu_request_microcode(const void *buf,
>      unsigned int cpu = smp_processor_id();
>      const struct cpu_signature *sig = &per_cpu(cpu_sig, cpu);
>  
> -    if ( bufsize < 4 ||
> +    if ( size < 4 ||
>           *(const uint32_t *)buf != UCODE_MAGIC )

Take the opportunity and put this on a single line?

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.