lkml.org 
[lkml]   [2019]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] KVM: avoid unnecessary bitmap clear ops
Date

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
>
\
 
 \ /
  Last update: 2019-10-25 11:49    [W:0.037 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site