Searched hist:e00f7bd221292b318d4d09c3f0c2c8af9b1e5edf (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/virtio/ |
H A D | virtio_ring.c | diff e00f7bd221292b318d4d09c3f0c2c8af9b1e5edf Fri Apr 15 09:45:10 CDT 2016 Dan Carpenter <dan.carpenter@oracle.com> virtio: Silence uninitialized variable warning
Smatch complains that we might not initialize "queue". The issue is callers like setup_vq() from virtio_pci_modern.c where "num" could be something like 2 and "vring_align" is 64. In that case, vring_size() is less than PAGE_SIZE. It won't happen in real life, but we're getting the value of "num" from a register so it's not really possible to tell what value it holds with static analysis.
Let's just silence the warning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|