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

virtio_ring: 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-3-shaoqin.huang@intel.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
parent 34468613
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment