git: 5d0ccaa45769 - stable/13 - pci: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 13:29:54 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d0ccaa457698ec74019e21587a325bf09fa4ede
commit 5d0ccaa457698ec74019e21587a325bf09fa4ede
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-02-28 15:54:42 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-03-07 13:18:45 +0000
pci: Fix a -Wunused-but-set-variable warning
(cherry picked from commit 4db93fb278fce5f1034a9868413a641d9554214e)
---
sys/dev/pci/pci_iov.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/pci/pci_iov.c b/sys/dev/pci/pci_iov.c
index f577640595a9..2a36ec555aae 100644
--- a/sys/dev/pci/pci_iov.c
+++ b/sys/dev/pci/pci_iov.c
@@ -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);