diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-08 15:18:43 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-08 15:18:43 +0200 |
commit | 4f54596e0113c0692c10cfc1c25400c8070d67b3 (patch) | |
tree | 8e2405c0f7cfbf403744409f0cf74e3147515ae3 | |
parent | 10734c8d74bc26043c9714a80468040b8bfa7249 (diff) | |
download | spice-4f54596e0113c0692c10cfc1c25400c8070d67b3.tar.gz spice-4f54596e0113c0692c10cfc1c25400c8070d67b3.tar.xz spice-4f54596e0113c0692c10cfc1c25400c8070d67b3.zip |
server: Remove unnecessary pci id/rev checks
There is no need to check the pci ids or revisions. Thats a contract
between qemu and the driver, and spice need not care, as long as
we get the right data from qemu.
-rw-r--r-- | server/red_dispatcher.c | 7 | ||||
-rw-r--r-- | server/spice.h | 4 |
2 files changed, 0 insertions, 11 deletions
diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index 539c18e1..426a3811 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -489,13 +489,6 @@ RedDispatcher *red_dispatcher_init(QXLInstance *qxl) sigset_t thread_sig_mask; sigset_t curr_sig_mask; - if (qxl->st->qif->pci_vendor != REDHAT_PCI_VENDOR_ID || - qxl->st->qif->pci_id != QXL_DEVICE_ID || - qxl->st->qif->pci_revision != QXL_REVISION) { - red_printf("pci mismatch"); - return NULL; - } - quic_init(); sw_canvas_init(); #ifdef USE_OGL diff --git a/server/spice.h b/server/spice.h index 99546cff..3c2c32e2 100644 --- a/server/spice.h +++ b/server/spice.h @@ -161,10 +161,6 @@ struct QXLDevSurfaceCreate { struct QXLInterface { SpiceBaseInterface base; - uint16_t pci_vendor; - uint16_t pci_id; - uint8_t pci_revision; - void (*attache_worker)(QXLInstance *qin, QXLWorker *qxl_worker); void (*set_compression_level)(QXLInstance *qin, int level); void (*set_mm_time)(QXLInstance *qin, uint32_t mm_time); |