diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2016-02-01 11:18:04 +0530 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-02-08 16:40:39 +1100 |
commit | 5ed17500f03913f3f125ecde14aa041c6235ba08 (patch) | |
tree | d97248719d0bef3a2bcd4e347764acf378d53540 /lib/libvirtio/virtio.h | |
parent | aa9566d2ed5c4fdcaa385759475c75bb0d0801d4 (diff) | |
download | SLOF-5ed17500f03913f3f125ecde14aa041c6235ba08.zip SLOF-5ed17500f03913f3f125ecde14aa041c6235ba08.tar.gz SLOF-5ed17500f03913f3f125ecde14aa041c6235ba08.tar.bz2 |
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 <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libvirtio/virtio.h')
-rw-r--r-- | lib/libvirtio/virtio.h | 2 |
1 files changed, 0 insertions, 2 deletions
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 { |