mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio: use helper function is_power_of_2()
@ 2022-10-21  6:27 shaoqin.huang
  2022-10-21  6:27 ` [PATCH 1/2] virtio_pci: " shaoqin.huang
  2022-10-21  6:27 ` [PATCH 2/2] virtio_ring: " shaoqin.huang
  0 siblings, 2 replies; 8+ messages in thread
From: shaoqin.huang @ 2022-10-21  6:27 UTC (permalink / raw)
  To: mst, jasowang; +Cc: Shaoqin Huang, linux-kernel, virtualization

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-24 11:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21  6:27 [PATCH 0/2] virtio: use helper function is_power_of_2() shaoqin.huang
2022-10-21  6:27 ` [PATCH 1/2] virtio_pci: " shaoqin.huang
2022-10-21  8:47   ` Philippe Mathieu-Daudé
2022-10-24 11:33   ` Xuan Zhuo
2022-10-21  6:27 ` [PATCH 2/2] virtio_ring: " shaoqin.huang
2022-10-21  8:53   ` Philippe Mathieu-Daudé
2022-10-22 12:31     ` Huang, Shaoqin
2022-10-24 11:33   ` Xuan Zhuo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®