Re: [PATCH 1/2] virtio_pci: use helper function is_power_of_2()

From: Philippe Mathieu-Daudé
Date: Fri Oct 21 2022 - 04:48:41 EST


On 21/10/22 08:27, shaoqin.huang@xxxxxxxxx wrote:
From: Shaoqin Huang <shaoqin.huang@xxxxxxxxx>

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@xxxxxxxxx>
---
drivers/virtio/virtio_pci_modern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>