Commit ed9f3ab9 authored by Xichao Zhao's avatar Xichao Zhao Committed by Michael S. Tsirkin
Browse files

virtio-vdpa: Drop redundant conversion to bool



The result of integer comparison already evaluates to bool. No need for
explicit conversion.

Signed-off-by: default avatarXichao Zhao <zhao.xichao@vivo.com>
Message-Id: <20250818102848.578875-1-zhao.xichao@vivo.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 3fc3068e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ virtio_vdpa_setup_vq(struct virtio_device *vdev, unsigned int index,
	if (ops->get_vq_num_min)
		min_num = ops->get_vq_num_min(vdpa);

	may_reduce_num = (max_num == min_num) ? false : true;
	may_reduce_num = (max_num != min_num);

	/* Create the vring */
	align = ops->get_vq_align(vdpa);