Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

virtio-vdpa: Drop redundant conversion to bool

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

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Message-Id: <20250818102848.578875-1-zhao.xichao@vivo.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Xichao Zhao and committed by
Michael S. Tsirkin
ed9f3ab9 3fc3068e

+1 -1
+1 -1
drivers/virtio/virtio_vdpa.c
··· 176 176 if (ops->get_vq_num_min) 177 177 min_num = ops->get_vq_num_min(vdpa); 178 178 179 - may_reduce_num = (max_num == min_num) ? false : true; 179 + may_reduce_num = (max_num != min_num); 180 180 181 181 /* Create the vring */ 182 182 align = ops->get_vq_align(vdpa);