From 5ed17500f03913f3f125ecde14aa041c6235ba08 Mon Sep 17 00:00:00 2001 From: Nikunj A Dadhania Date: Mon, 1 Feb 2016 11:18:04 +0530 Subject: virtio: get rid of type variable in virtio_device virtio device structure carries a type variable indicating whether virtio is over PCI or VIO. While VIO is not there and no plan to introduce other transport, there is no purpose of having this variable around and checking for PCI. Signed-off-by: Nikunj A Dadhania Reviewed-by: Thomas Huth Signed-off-by: Alexey Kardashevskiy --- lib/libvirtio/virtio.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/libvirtio/virtio.h') diff --git a/lib/libvirtio/virtio.h b/lib/libvirtio/virtio.h index c26282f..75de5ec 100644 --- a/lib/libvirtio/virtio.h +++ b/lib/libvirtio/virtio.h @@ -61,10 +61,8 @@ struct vring_used { struct vring_used_elem ring[]; }; -#define VIRTIO_TYPE_PCI 0 /* For virtio-pci interface */ struct virtio_device { void *base; /* base address */ - int type; /* VIRTIO_TYPE_PCI or VIRTIO_TYPE_VIO */ }; struct vqs { -- cgit v1.1