aboutsummaryrefslogtreecommitdiff
path: root/lib/bug.c
diff options
context:
space:
mode:
authorShaoqin Huang2022-10-20 23:27:34 -0700
committerMichael S. Tsirkin2022-12-28 05:28:09 -0500
commitb9d978a89296c57fbbbd8ea647c303ce4d37028f (patch)
tree8c65295579a9c92e5d5e816b4c9a56ef468aed69 /lib/bug.c
parent344686136d73501a18a9621de690ff7824a3d129 (diff)
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: Shaoqin Huang <shaoqin.huang@intel.com> Message-Id: <20221021062734.228881-3-shaoqin.huang@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions