diff options
author | Shaoqin Huang | 2022-10-20 23:27:34 -0700 |
---|---|---|
committer | Michael S. Tsirkin | 2022-12-28 05:28:09 -0500 |
commit | b9d978a89296c57fbbbd8ea647c303ce4d37028f (patch) | |
tree | 8c65295579a9c92e5d5e816b4c9a56ef468aed69 /lib/bug.c | |
parent | 344686136d73501a18a9621de690ff7824a3d129 (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