Skip to contentSkip to conversation

KVM: avoid unnecessary bitmap clear ops

PATCH linmiaohe 1 participant 1 message Oct 25, 2019 KVM

lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 11 lines · Paolo
Quoted 1 line · Miaohe Lin

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;
Quoted 8 lines

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.

Quoted 5 lines

Thanks,

Paolo