[0/2] virtio: use helper function is_power_of_2()

Message ID 20221021062734.228881-1-shaoqin.huang@intel.com
Headers
Series virtio: use helper function is_power_of_2() |

Message

Huang, Shaoqin Oct. 21, 2022, 6:27 a.m. UTC
  From: Shaoqin Huang <shaoqin.huang@intel.com>

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

Shaoqin Huang (2):
  virtio_pci: use helper function is_power_of_2()
  virtio_ring: use helper function is_power_of_2()

 drivers/virtio/virtio_pci_modern.c | 2 +-
 drivers/virtio/virtio_ring.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)