Skip to content
Commit 34468613 authored by Shaoqin Huang's avatar Shaoqin Huang Committed by Michael S. Tsirkin
Browse files

virtio_pci: use helper function is_power_of_2()



Use helper function is_power_of_2() to check if num is power of two.
Minor readability improvement.

Signed-off-by: default avatarShaoqin Huang <shaoqin.huang@intel.com>
Message-Id: <20221021062734.228881-2-shaoqin.huang@intel.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
parent 38fc462f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment