git: 76e96756633e - main - vtpci_legacy_register_msix: eliminate write only variable dev
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:56 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=76e96756633e5d33f334bb48bedf981557272ead commit 76e96756633e5d33f334bb48bedf981557272ead Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 02:33:01 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:30:42 +0000 vtpci_legacy_register_msix: eliminate write only variable dev Sponsored by: Netflix --- sys/dev/virtio/pci/virtio_pci_legacy.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/virtio/pci/virtio_pci_legacy.c b/sys/dev/virtio/pci/virtio_pci_legacy.c index 8de23f052893..16627ed00e9a 100644 --- a/sys/dev/virtio/pci/virtio_pci_legacy.c +++ b/sys/dev/virtio/pci/virtio_pci_legacy.c @@ -654,11 +654,8 @@ static int vtpci_legacy_register_msix(struct vtpci_legacy_softc *sc, int offset, struct vtpci_interrupt *intr) { - device_t dev; uint16_t vector; - dev = sc->vtpci_dev; - if (intr != NULL) { /* Map from guest rid to host vector. */ vector = intr->vti_rid - 1;