Re: [PATCH] KVM: avoid unnecessary bitmap clear ops

From: linmiaohe
Date: Fri Oct 25 2019 - 05:49:43 EST



On 25/10/19 17:43, Paolo wrote:
> On 25/10/19 04:24, Miaohe Lin wrote:
>> When set one bit in bitmap, there is no need to clear it before.
>
>Hi,
>
>in general the Linux coding style prefers:
>
> a = x;
> if (...);
> a = y;
>
>to
>
> if (...)
> a = y;
> else
> a = x;
>
>which is why these lines were written this way.

Many thanks for your explanation. I see.
Have a nice day.

>
>Thanks,
>
>Paolo
>