virtio: clean up unused 'char *bar_name'
PATCH 1/1 virtio: clean up unused 'char *bar_name'
Clean up 'char *bar_name' to avoid compile warning.
Signed-off-by Jun Piao <[email protected]>
--- drivers/virtio/virtio_pci_modern.c | 1 - 1 file changed, 1 deletion(-)
drivers/virtio/virtio_pci_modern.c +0 -1
@@ -519,7 +519,6 @@ static bool vp_get_shm_region(struct virtio_device *vdev,u64 offset, len;phys_addr_t phys_addr;size_t bar_len; -char *bar_name;int ret;if (!virtio_pci_find_shm_cap (pci_dev, id, &bar, &offset, &len)) {
Quoted 6 lines · piaojun
Clean up 'char
*bar_name' to avoid compile warning.Signed-off-by Jun Piao <[email protected]>--- drivers/virtio/virtio_pci_modern.c | 1 - 1 file changed, 1 deletion(-)
Reviewed-by Stefan Hajnoczi <[email protected]>