lkml.org 
[lkml]   [2022]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] virtio: use helper function is_power_of_2()
Date
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

\
 
 \ /
  Last update: 2022-10-21 08:27    [W:0.087 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site