]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
pci: Fix a -Wunused-but-set-variable warning
authorMark Johnston <markj@FreeBSD.org>
Mon, 28 Feb 2022 15:54:42 +0000 (10:54 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 7 Mar 2022 13:18:45 +0000 (08:18 -0500)
(cherry picked from commit 4db93fb278fce5f1034a9868413a641d9554214e)

sys/dev/pci/pci_iov.c

index f577640595a94cfd7cc1ac204c861e86d95d7d36..2a36ec555aae663d6c7221a34e2f192f2e6f81e9 100644 (file)
@@ -117,7 +117,6 @@ int
 pci_iov_attach_method(device_t bus, device_t dev, nvlist_t *pf_schema,
     nvlist_t *vf_schema, const char *name)
 {
-       device_t pcib;
        struct pci_devinfo *dinfo;
        struct pcicfg_iov *iov;
        nvlist_t *schema;
@@ -126,7 +125,6 @@ pci_iov_attach_method(device_t bus, device_t dev, nvlist_t *pf_schema,
        int iov_pos;
 
        dinfo = device_get_ivars(dev);
-       pcib = device_get_parent(bus);
        schema = NULL;
 
        error = pci_find_extcap(dev, PCIZ_SRIOV, &iov_pos);