git: cc557faf869a - main - Fix "set but not used" in cardbus
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Dec 2021 22:14:52 UTC
The branch main has been updated by scottl:
URL: https://cgit.FreeBSD.org/src/commit/?id=cc557faf869a59b97f775284749648b57948cef2
commit cc557faf869a59b97f775284749648b57948cef2
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-05 22:14:35 +0000
Commit: Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-12-05 22:14:35 +0000
Fix "set but not used" in cardbus
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/dev/cardbus/cardbus.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c
index 50a21dfc0b82..f13e0ac4675c 100644
--- a/sys/dev/cardbus/cardbus.c
+++ b/sys/dev/cardbus/cardbus.c
@@ -317,10 +317,8 @@ static int
cardbus_read_ivar(device_t cbdev, device_t child, int which, uintptr_t *result)
{
struct cardbus_devinfo *dinfo;
- pcicfgregs *cfg;
dinfo = device_get_ivars(child);
- cfg = &dinfo->pci.cfg;
switch (which) {
case PCI_IVAR_ETHADDR: