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

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

 



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
>




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux