git: 10a41dd70845 - stable/13 - vtpci_legacy_register_msix: eliminate write only variable dev

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:30:04 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=10a41dd708459c580058c1606dc24b9781b39f40

commit 10a41dd708459c580058c1606dc24b9781b39f40
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:34 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:56 +0000

    vtpci_legacy_register_msix: eliminate write only variable dev
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 76e96756633e5d33f334bb48bedf981557272ead)
---
 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 e5882295e9dd..bc18c2562690 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;