diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-12-04 19:31:45 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-12-09 21:42:00 +0200 |
commit | d71a6fc6b97fba1de999c6f0fab5c75544afab76 (patch) | |
tree | 4f29a0280f7725f6807af7f28ec9f078b80c7bde /drivers/virtio | |
parent | 63d9f218a3cdaa2316ede9099d6be2c619ec5b9f (diff) |
virtio: drop legacy_only driver flag
legacy_only flag is now unused, drop it from core.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'drivers/virtio')
-rw-r--r-- | drivers/virtio/virtio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index e1673a511d17..f22665868781 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -198,10 +198,6 @@ static int virtio_dev_probe(struct device *_d) driver_features_legacy = driver_features; } - /* Detect legacy-only drivers and disable VIRTIO_F_VERSION_1. */ - if (drv->legacy_only) - device_features &= ~(1ULL << VIRTIO_F_VERSION_1); - if (device_features & (1ULL << VIRTIO_F_VERSION_1)) dev->features = driver_features & device_features; else |